diff --git a/README.md b/README.md index db522d7f3..362cb479a 100644 --- a/README.md +++ b/README.md @@ -1704,10 +1704,10 @@ try Person.deleteOne(db, key: ["email": "arthur@example.com"]) try Country.deleteAll(db, keys: ["FR", "US"]) ``` -Other deletions require an [SQL query](#executing-updates): +For batch deletes, see the [query interface](#the-query-interface): ```swift -try db.execute("DELETE FROM persons") +try Person.filter(emailColumn == nil).deleteAll(db) ``` diff --git a/TODO.md b/TODO.md index a45e54875..89823a126 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ +- [ ] Try TableMappingType.deleteAll(db) - [ ] Remove DatabaseWriter.writeForIssue117 when https://bugs.swift.org/browse/SR-2623 is fixed (remove `writeForIssue117`, use `write` instead, and build in Release configuration) - [ ] Restore SQLCipher - [ ] Restore dispatching tests in GRDBOSXTests (they are disabled in order to avoid linker errors)