From aaf4deee2c402e7756a4c83c197849eb8bb8a4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 17 Sep 2016 06:30:44 +0200 Subject: [PATCH] Documentation --- README.md | 4 ++-- TODO.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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)