Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f89456b

Browse files
committed
SQLite
1 parent d23e87f commit f89456b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,8 +1855,8 @@ import sqlite3
18551855

18561856
### Write
18571857
```python
1858-
<con>.execute('<query>')
1859-
<con>.commit()
1858+
<con>.execute('<query>') # Can raise a subclass of sqlite3.Error.
1859+
<con>.commit() # Commits all transactions since last commit.
18601860
```
18611861

18621862
#### Or:

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,8 +1672,8 @@
16721672
</code></pre></div>
16731673

16741674

1675-
<div><h3 id="write-1">Write</h3><pre><code class="python language-python hljs">&lt;con&gt;.execute(<span class="hljs-string">'&lt;query&gt;'</span>)
1676-
&lt;con&gt;.commit()
1675+
<div><h3 id="write-1">Write</h3><pre><code class="python language-python hljs">&lt;con&gt;.execute(<span class="hljs-string">'&lt;query&gt;'</span>) <span class="hljs-comment"># Can raise a subclass of sqlite3.Error.</span>
1676+
&lt;con&gt;.commit() <span class="hljs-comment"># Commits all transactions since last commit.</span>
16771677
</code></pre></div>
16781678

16791679
<div><h4 id="or">Or:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">with</span> &lt;con&gt;:

0 commit comments

Comments
 (0)