From 617f0c8c17b090fb7f436e54e3ab01d2dcaebb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 29 Nov 2016 08:47:34 +0100 Subject: [PATCH] TODO: more Cursor methods so that it looks more like a sequence --- TODO.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 200740aa0..478c022e5 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,9 @@ -- [ ] DatabaseCursor: Consider having Cursor.map et al return Cursor as well, so that we don't lose the memory efficiency of this type -- [ ] DatabaseCursor/FetchedRecordsController: handle fetch errors +- [ ] Cursor.first(where:) +- [ ] Cursor.contains(where:) +- [ ] Cursor.contains(_:) +- [ ] Cursor.joined() +- [ ] Cursor.joined(separator:) +- [ ] FetchedRecordsController: handle fetch errors - [ ] Swift 3.0.2 (Xcode 8.2): "Type inference will properly unwrap optionals when used with generics and implicitly-unwrapped optionals." Maybe this fixes `row.value(named: "foo") as? Int`? - [ ] Refactor Database notion of transaction/savepoints into a single type. Support INSERT OR ROLLBACK. - Since some statements may implicitly rollback transactions, we can not rely on explicit rollback statements to infer the transaction state. We can only rely on sqlite3_rollback_hook, assuming it is called even for implicit rollbacks (test with an INSERT OR ROLLBACK statement).