We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc79454 commit 8964110Copy full SHA for 8964110
docs/python-api.rst
@@ -890,7 +890,8 @@ You can delete all records in a table that match a specific WHERE statement usin
890
891
>>> db = sqlite_utils.Database("dogs.db")
892
>>> # Delete every dog with age less than 3
893
- >>> db["dogs"].delete_where("age < ?", [3])
+ >>> with db.conn:
894
+ >>> db["dogs"].delete_where("age < ?", [3])
895
896
Calling ``table.delete_where()`` with no other arguments will delete every row in the table.
897
0 commit comments