Skip to content

Commit

Permalink
Documented the use of delete_where (#630)
Browse files Browse the repository at this point in the history
Documented the use of delete_where, as shown in #159
  • Loading branch information
learning4life authored Jul 18, 2024
1 parent dc79454 commit 8964110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/python-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ You can delete all records in a table that match a specific WHERE statement usin

>>> db = sqlite_utils.Database("dogs.db")
>>> # Delete every dog with age less than 3
>>> db["dogs"].delete_where("age < ?", [3])
>>> with db.conn:
>>> db["dogs"].delete_where("age < ?", [3])

Calling ``table.delete_where()`` with no other arguments will delete every row in the table.

Expand Down

0 comments on commit 8964110

Please sign in to comment.