From f89456b0f8105164c6545b867efa94b8c957c3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 1 Dec 2020 09:17:05 +0100 Subject: [PATCH] SQLite --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b87ccb7..e31cbb9 100644 --- a/README.md +++ b/README.md @@ -1855,8 +1855,8 @@ import sqlite3 ### Write ```python -.execute('') -.commit() +.execute('') # Can raise a subclass of sqlite3.Error. +.commit() # Commits all transactions since last commit. ``` #### Or: diff --git a/index.html b/index.html index 1d03b85..1a5e062 100644 --- a/index.html +++ b/index.html @@ -1672,8 +1672,8 @@ CompletedProcess(args=['bc', Write
<con>.execute('<query>')
-<con>.commit()
+

Write

<con>.execute('<query>')                        # Can raise a subclass of sqlite3.Error.
+<con>.commit()                                  # Commits all transactions since last commit.
 

Or:

with <con>: