Commit Graph
425 Commits
Author SHA1 Message Date
Gwendal Roué 67035b8422 Database.execute(_:) iterates all rows of statements 2016-12-02 08:28:24 +01:00
Gwendal Roué b8d924ab6f Restore DatabasePool in a stable state 2016-12-01 19:17:19 +01:00
Gwendal Roué f781da41a4 WIP: the recent failing tests of DatabasePool.readFromCurrentState, a paramount brick of FetchedRecordsController, have led to a refactoring of the DatabaseWriter protocol, and DatabasePool.write { ... } always executing a transaction. 2016-12-01 14:12:20 +01:00
Gwendal Roué 019363e56b Failing tests for DatabasePool.read 2016-12-01 10:44:18 +01:00
Gwendal Roué d801f1f5fb Failing test for DatabasePool.readFromCurrentState 2016-12-01 08:56:04 +01:00
Gwendal Roué 263adb157c Update tests for SQLCipher 2016-11-30 19:34:09 +01:00
Gwendal Roué 5c44f55ef6 FetchedRecordsController: remove some crash opportunities by compiling the fetch request statement right from the initializer and the setRequest() method. 2016-11-30 13:27:51 +01:00
Gwendal Roué 6bcab179d1 Classify all try! and fatalError into TODO, Programmer Error, or GRDB bug that needs to be fixed. 2016-11-30 08:56:45 +01:00
Gwendal Roué f495edfb3a Improve Cursor test coverage 2016-11-29 21:11:12 +01:00
Gwendal Roué 0c4fb36827 Add RowFetchTests 2016-11-28 20:48:38 +01:00
Gwendal Roué ec2017ff72 Cursor.enumerated, filter, flatMap, map now return cursors. Cursor.lazy returns a lazy sequence. Introduce AnyCursor. Force Cursor types to be classes. 2016-11-28 20:34:53 +01:00
Gwendal Roué bbe0bfadd9 #147: fetchCursor, fetchAll & fetchOne all throw sqlite3_prepare_v2 errors, sqlite3_step errors, and conversion errors (for DatabaseValueConvertible) 2016-11-27 20:13:58 +01:00
Gwendal Roué ebf9b0e4f1 Simplify tests for RowConvertible fetch requests 2016-11-27 18:44:54 +01:00
Gwendal Roué b85a8b8b0b #147: DatabaseValueConvertible.fetchOne() can throw conversion errors 2016-11-27 18:21:04 +01:00
Gwendal Roué 268080cbc5 #147: FetchedRecordsController.performFetch() can now throw database errors; remove work around for SR-2623 2016-11-27 08:19:43 +01:00
Gwendal Roué ac6c7f6a35 #147: fetchAll() and fetchOne() can now throw database errors. 2016-11-26 22:38:40 +01:00
Gwendal Roué af6e31dcdf #147: The fetch method have been removed, along with DatabaseSequence and DatabaseIterator. 2016-11-26 21:14:10 +01:00
Gwendal Roué 81504bba1e #147: DatabaseCursor.flatMap() 2016-11-26 16:10:39 +01:00
Gwendal Roué 66bedf46a1 #147: DatabaseCursor.enumerated() 2016-11-26 15:19:40 +01:00
Gwendal Roué a196ac03b1 #147: tests for DatabaseCursor.filter, forEach, map, reduce; dropped DatabaseCursor.enumerated since it can't be implemented yet 2016-11-26 14:39:09 +01:00
Gwendal Roué ae1010166a #147: record.exists(_:) can now throw a database error 2016-11-26 11:36:07 +01:00
Gwendal Roué a548212f27 #147: tests for QueryInterfaceRequest.fetchCursor(_:) and (RowConvertible & TableMapping).fetchCursor(_:) 2016-11-26 11:20:35 +01:00
Gwendal Roué 173a60eac6 bugfix 2016-11-26 10:23:36 +01:00
Gwendal Roué 8411efc8ef #147: tests for RowConvertible.fetchCursor(_:keys:) methods 2016-11-26 10:19:56 +01:00
Gwendal Roué af8fe35222 #147: tests for RowConvertible.fetchCursor() methods 2016-11-26 09:52:54 +01:00
Gwendal Roué a0e5f64ddf #147: tests for StatementColumnConvertible.fetchCursor() methods 2016-11-26 09:37:50 +01:00
Gwendal Roué e5a9159282 #147: tests for DatabaseValueConvertible.fetchCursor() methods 2016-11-26 08:46:57 +01:00
Gwendal Roué b31356aada #147: Database.tableExists(_:) and Database.indexes(on:) can now throw database errors 2016-11-26 08:28:32 +01:00
Gwendal Roué adc4ae48d6 Test DatabaseSequence<Row>.map 2016-11-25 08:11:26 +01:00
Gwendal Roué dcb995c626 Fix compiler warning 2016-11-10 08:32:23 +01:00
Gwendal Roué 311d40a9f1 Test that FetchedRecordsController.sections.count is 1 when there are no fetched records 2016-11-06 12:39:42 +01:00
Gwendal Roué 11aa9f7b79 Upgrade SQLite to v3.15.1 2016-11-05 14:05:23 +01:00
Gwendal Roué 7dfa4bcdb5 FetchedRecordsController: restore default record comparator 2016-10-29 10:49:32 +02:00
Gwendal Roué df120ec4a3 FetchedRecordsController: default record comparator now compares rows 2016-10-29 07:25:56 +02:00
Gwendal Roué 6dfa6a3710 FetchedRecordsController.isSameRecord is an iOS-only tool 2016-10-28 19:42:02 +02:00
Gwendal Roué 266f23d1e6 Update tests for CountableRange.contains(), add tests for 0.negated 2016-10-21 09:14:54 +02:00
Gwendal Roué 430ef5d1a6 Hide FetchedRecordsControlleriOSTests behind #if os(iOS) 2016-10-17 20:27:24 +02:00
Gwendal Roué 2acfbcdce6 Failing test for compareRecordsByPrimaryKey option of FetchedRecordsController when record has no primary key 2016-10-17 20:16:31 +02:00
Gwendal Roué 825db1158c Add failing test for virtual table module that throws in its database(_:didCreate:using:) 2016-10-17 19:21:57 +02:00
Gwendal Roué f5bbc43c87 Add a test for FetchedRecordsController request modification with uppercase table and column names 2016-10-17 14:00:32 +02:00
Gwendal Roué 34b7cda2ec Fix failing test for FetchedRecordsController: when the request changes, we now do update the tracked tables and columns 2016-10-17 13:34:46 +02:00
Gwendal Roué f2cd90a999 Failing test for FetchedRecordsController: when the request changes, we do not update the tracked tables and columns 2016-10-17 13:16:15 +02:00
Gwendal Roué 361eaeca07 Upgrade SQLiteCustom to v3.15.0 2016-10-16 10:59:28 +02:00
Gwendal Roué 12af387e50 FTS4: support for external content table synchronization 2016-10-16 09:52:58 +02:00
Gwendal Roué 55216be46b FTS5: support for external content table synchronization 2016-10-16 09:32:41 +02:00
Gwendal Roué 7630642c56 matching() and match() methods accept nil FTS patterns 2016-10-16 07:47:25 +02:00
Gwendal Roué fafe2374b7 Documentation 2016-10-12 08:03:26 +02:00
Gwendal Roué b0e68366d4 Documentation 2016-10-12 07:58:19 +02:00
Gwendal Roué 088c37d1ea Documentation 2016-10-11 20:51:32 +02:00
Gwendal Roué eab2bd3565 Documentation 2016-10-11 14:38:50 +02:00