Skip to content

Commit 449b7cf

Browse files
committed
SQLite
1 parent 0782c2c commit 449b7cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ with <conn>: # Exits the block with commit() o
19381938
from sqlalchemy import create_engine, text
19391939
<engine> = create_engine('<url>') # Url: 'dialect://user:password@host/dbname'.
19401940
<conn> = <engine>.connect() # Creates a connection. Also <conn>.close().
1941-
<cursor> = <conn>.execute(text('<query>'), …) # Replaces ':<key>'s with keyword arguments.
1941+
<cursor> = <conn>.execute(text('<query>'), …) # `<dict>`. Replaces ':<key>'s with values.
19421942
with <conn>.begin(): ... # Exits the block with commit or rollback.
19431943
```
19441944

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<body>
5757
<header>
58-
<aside>December 4, 2024</aside>
58+
<aside>December 5, 2024</aside>
5959
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
6060
</header>
6161

@@ -1602,7 +1602,7 @@
16021602
<span class="hljs-keyword">from</span> sqlalchemy <span class="hljs-keyword">import</span> create_engine, text
16031603
&lt;engine&gt; = create_engine(<span class="hljs-string">'&lt;url&gt;'</span>) <span class="hljs-comment"># Url: 'dialect://user:password@host/dbname'.</span>
16041604
&lt;conn&gt; = &lt;engine&gt;.connect() <span class="hljs-comment"># Creates a connection. Also &lt;conn&gt;.close().</span>
1605-
&lt;cursor&gt; = &lt;conn&gt;.execute(text(<span class="hljs-string">'&lt;query&gt;'</span>), …) <span class="hljs-comment"># Replaces ':&lt;key&gt;'s with keyword arguments.</span>
1605+
&lt;cursor&gt; = &lt;conn&gt;.execute(text(<span class="hljs-string">'&lt;query&gt;'</span>), …) <span class="hljs-comment"># `&lt;dict&gt;`. Replaces ':&lt;key&gt;'s with values.</span>
16061606
<span class="hljs-keyword">with</span> &lt;conn&gt;.begin(): ... <span class="hljs-comment"># Exits the block with commit or rollback.</span>
16071607
</code></pre></div>
16081608

@@ -2924,7 +2924,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29242924

29252925

29262926
<footer>
2927-
<aside>December 4, 2024</aside>
2927+
<aside>December 5, 2024</aside>
29282928
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29292929
</footer>
29302930

0 commit comments

Comments
 (0)