summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3/shortcut_methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/sqlite3/shortcut_methods.py')
-rw-r--r--Doc/includes/sqlite3/shortcut_methods.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/includes/sqlite3/shortcut_methods.py b/Doc/includes/sqlite3/shortcut_methods.py
index 71600d4..98a3941 100644
--- a/Doc/includes/sqlite3/shortcut_methods.py
+++ b/Doc/includes/sqlite3/shortcut_methods.py
@@ -18,3 +18,7 @@ for row in con.execute("select firstname, lastname from person"):
print(row)
print("I just deleted", con.execute("delete from person").rowcount, "rows")
+
+# close is not a shortcut method and it's not called automatically,
+# so the connection object should be closed manually
+con.close()