Documented the use of delete_where (#630)

Documented the use of delete_where, as shown in https://github.com/simonw/sqlite-utils/issues/159
This commit is contained in:
Thomas 2024-07-18 20:34:24 +02:00 committed by GitHub
commit 896411099e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.