Commit Graph
1613 Commits
Author SHA1 Message Date
Gwendal Roué 46f24c582c Fix failing tests for Database.isInsideTransaction 2016-12-14 08:59:57 +01:00
Gwendal Roué a0d9b9fbe8 Support for free BEGIN/COMMIT/ROLLBACK statements 2016-12-14 08:07:42 +01:00
Gwendal Roué 2190e449c1 Documentation fix 2016-12-13 09:13:46 +01:00
Gwendal Roué a68ed01003 Documentation 2016-12-12 08:38:03 +01:00
Gwendal Roué 18664b7e7e Documentation 2016-12-12 08:13:31 +01:00
Gwendal Roué cb81e50f71 Request.adapted(_:) 2016-12-11 21:07:52 +01:00
Gwendal Roué 66daa2eb29 RangeRowAdapter(CountableClosedRange<Int>) 2016-12-09 09:54:25 +01:00
Gwendal Roué f6513932b0 Documentation 2016-12-09 08:48:26 +01:00
Gwendal Roué 1d6671c11a Introduce RangeRowAdapter 2016-12-08 19:07:11 +01:00
Gwendal Roué 2f2dc86c9d Documentation 2016-12-08 17:20:32 +01:00
Gwendal Roué bfb2ff9390 Documentation 2016-12-08 16:02:35 +01:00
Gwendal Roué cbd14c4b8c Documentation 2016-12-08 14:03:22 +01:00
Gwendal Roué cb08660a78 Rename FetchRequest -> Request 2016-12-08 13:56:05 +01:00
Gwendal Roué cc1df37725 Documentation 2016-12-08 08:50:00 +01:00
Gwendal Roué 07aecd3a95 Fix failing tests of TypedFetchRequest 2016-12-08 08:43:58 +01:00
Gwendal Roué 9e634196bf Public SQLFetchRequest initializer 2016-12-08 07:48:28 +01:00
Gwendal Roué bab56b4c9d Documentation 2016-12-08 06:46:39 +01:00
Gwendal Roué 970da50910 Expose SQLFetchRequest, and cleanup 2016-12-07 23:20:58 +01:00
Gwendal Roué 0008e4b645 FetchedRecordsController's ObservedRequest adopts TypedFetchRequest 2016-12-07 22:39:53 +01:00
Gwendal Roué 89e7a62d99 Introduce AnyFetchRequest, TypedFetchRequest, AnyTypedFetchRequest 2016-12-07 22:21:19 +01:00
Gwendal Roué 74e89c542a Cleanup 2016-12-07 18:45:14 +01:00
Gwendal Roué 8c440961c5 Database.columnCount(in:) 2016-12-07 10:10:59 +01:00
Gwendal Roué 255e12849e Fix failing test for change tracking of wrapped Record 2016-12-07 08:46:02 +01:00
Gwendal Roué 93d9516a07 Minor 2016-12-04 15:42:31 +01:00
Gwendal Roué 261eb19fea Documentation 2016-12-04 06:51:14 +01:00
Gwendal Roué 28221e398e Documentation 2016-12-02 14:23:17 +01:00
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é b58a4e90da WIP DatabaseWriter/DatabaseReader improvements 2016-12-01 18:13:00 +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é c0695e80a8 Fix failing DatabasePool tests 2016-12-01 10:44:28 +01:00
Gwendal Roué bf76567fdf Remove useless code 2016-12-01 10:43:10 +01:00
Gwendal Roué bd32afbed2 Rename DatabaseWriter.readFromWrite to readFromCurrentState 2016-12-01 08:55:47 +01:00
Gwendal Roué 095778cf0f Documentation 2016-11-30 10:53:57 +01:00
Gwendal Roué 2cec3f29d1 Statement.fetchCursor() no longer throws. TODO: Type.fetchCursor(statement) should not throw 2016-11-30 09:18:22 +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é 972789dba3 Replace Array(Type.fetchCursor()) with Type.fetchAll() 2016-11-29 19:02:58 +01:00
Gwendal Roué cec1ed8d3d IteratorCursor has public initializers. Add joined() method for cursors of sequences. 2016-11-29 19:02:10 +01:00
Gwendal Roué 527aed0ea3 Documentation 2016-11-29 14:17:41 +01:00
Gwendal Roué a8e266377c Documentation 2016-11-29 12:02:29 +01:00
Gwendal Roué 2e73199153 Cleanup FlattenCursor 2016-11-29 08:41:13 +01:00
Gwendal Roué 5b0b674988 DatabaseStore: *really* expose initialization error (addresses https://github.com/groue/GRDB.swift/pull/148#issuecomment-263376526) 2016-11-29 08:21:43 +01:00
Gwendal Roué d85a74570d DatabaseStore: expose initialization error (addresses https://github.com/groue/GRDB.swift/pull/148#issuecomment-263376526) 2016-11-29 08:20:36 +01:00
Gwendal Roué bb1f8aab24 Drop Cursor.lazy 2016-11-29 06:35:09 +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é 5e2dc95331 DatabaseValueConvertible.fetchOne(): avoid double DatabaseValue conversion 2016-11-28 08:46:57 +01:00
Gwendal Roué ee99abc266 Replace fetchCursor().next() with fetchOne() 2016-11-28 08:41:59 +01:00
Gwendal Roué 59506a97d6 Cleanup 2016-11-27 19:08:25 +01:00
Gwendal Roué b85a8b8b0b #147: DatabaseValueConvertible.fetchOne() can throw conversion errors 2016-11-27 18:21:04 +01:00
Gwendal Roué 95eb9afeef Cleanup 2016-11-27 15:37:03 +01:00