Skip to content

Commit

Permalink
Improve SQLite3 example (#3083)
Browse files Browse the repository at this point in the history
Co-authored-by: Riccardo Magliocchetti <[email protected]>
  • Loading branch information
Kludex and xrmx authored Dec 11, 2024
1 parent 7804e0a commit e32aac7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
SQLite3Instrumentor().instrument()
cnx = sqlite3.connect('example.db')
cnx = sqlite3.connect(':memory:')
cursor = cnx.cursor()
cursor.execute("CREATE TABLE test (testField INTEGER)")
cursor.execute("INSERT INTO test (testField) VALUES (123)")
cursor.close()
cnx.close()
Expand Down

0 comments on commit e32aac7

Please sign in to comment.