Python: Model sqlite3 as SQL interface

This commit is contained in:
Rasmus Wriedt Larsen
2020-12-09 11:16:09 +01:00
parent 767a246edc
commit 36e8ef53eb
3 changed files with 27 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ db = sqlite3.connect("example.db")
db.execute("some sql", (42,)) # $ MISSING: getSql="some sql"
cursor = db.cursor()
cursor.execute("some sql", (42,)) # $ MISSING: getSql="some sql"
cursor.execute("some sql", (42,)) # $ getSql="some sql"