Commit Graph
600 Commits
Author SHA1 Message Date
Gwendal Roué c34ac0f17b Cleanup 2017-04-20 14:37:06 +02:00
Gwendal Roué b06f76512d Merge pull request #202 from zmeyc/pr_spm1
SPM support
2017-04-11 13:37:23 +02:00
Gwendal Roué 5b7ad40163 [whitespace] 2017-04-11 11:05:49 +02:00
Andrey Fidrya 1751fb38e5 SPM support 2017-04-08 21:32:58 +03:00
Gwendal Roué 6c6bbf6294 Fix failing test for SELECT COUNT(*) FROM table observation 2017-04-06 10:35:41 +02:00
Gwendal Roué 26aeb7dcbd New public function: TableMapping.primaryKeyRowComparator. This new API exposes record comparison abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions. 2017-04-02 17:27:25 +02:00
Gwendal Roué 311ad6b940 New public APIs: SelectStatement.selectionInfo, DatabaseEventKind.impacts(_:). Those new APIs expose database observation abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions. 2017-04-01 16:01:55 +02:00
Gwendal Roué b1d93112da Embed a copy of sqlite3.h in order to work around my inability at importing <sqlite3.h> from all targeted SDKs (addresses #166, #170) 2017-03-26 15:37:31 +02:00
Gwendal Roué 88f206e7f5 New DatabaseReader.read() guarantee: database modifications are prevented 2017-03-24 09:18:24 +01:00
Gwendal Roué e4a346995b #171: rename ResultCode.code into ResultCode.resultCode (@hartbit's suggestion) 2017-02-26 17:24:44 +01:00
Gwendal Roué 7eb592df79 #171: introduce ResultCode 2017-02-26 15:36:21 +01:00
David Hart 898db8b7d4 fix Record getting the default implementation of persistenceConflictPolicy 2017-02-22 19:33:22 +01:00
Gwendal Roué 4dfd672c04 Compound unique keys: preserve index ordering in generated SQL queries 2017-01-22 16:51:02 +01:00
Gwendal Roué 9f212184fd FetchedRecordsController.allowBackgroundChangesTracking(in:) 2017-01-20 12:16:14 +01:00
Gwendal Roué fdf33cbf81 Experimental: FetchedRecordsController.allowBackgroundTracking 2017-01-17 15:01:14 +01:00
Gwendal Roué bcdcceb809 Cleanup 2017-01-10 13:38:51 +01:00
Gwendal Roué c5f3aa21b3 FetchedRecordsController documentation 2017-01-10 13:05:17 +01:00
Gwendal Roué 9831b0e3d4 FetchedRecordsController.setRequest() uses TypedRequest 2017-01-10 08:23:09 +01:00
Gwendal Roué 14dca4667a Simplify FetchedRecordsController callbacks API 2017-01-06 08:40:09 +01:00
Gwendal Roué ebff14adac Cleanup 2017-01-06 08:24:50 +01:00
Gwendal Roué 51f02ed46e Move TableMapping.primaryKeyFunction and primaryKeyRowComparator into TableMapping.swift 2017-01-06 08:19:07 +01:00
Gwendal Roué 03740d0918 Remove FetchedRecordsController compareRecordsByPrimaryKey initializer option 2017-01-06 08:16:57 +01:00
Gwendal Roué c83a16e22e FetchedRecordsController initialisers use TypedRequest 2017-01-06 08:12:14 +01:00
Kevin Wooten f368af3d02 Support “TableViewEvent” on all all platforms
* TableViewEvent features of FetchedRecordsController supported on all platforms
* Renamed TableViewEvent to FetchedRecordsChangeEvent
* Renamed TableViewChange to FetchedRecordsChange
2016-12-30 00:30:23 -07:00
Gwendal Roué 2fe89fc41b Documentation 2016-12-28 13:05:29 +01:00
Gwendal Roué ed4826a67f FetchedRecordsController error handling 2016-12-16 19:46:12 +01:00
Gwendal Roué c36be55c2f FetchedRecordsController error handling WIP 2016-12-16 09:09:50 +01:00
Gwendal Roué cb81e50f71 Request.adapted(_:) 2016-12-11 21:07:52 +01:00
Gwendal Roué f6513932b0 Documentation 2016-12-09 08:48:26 +01:00
Gwendal Roué cb08660a78 Rename FetchRequest -> Request 2016-12-08 13:56:05 +01:00
Gwendal Roué 0008e4b645 FetchedRecordsController's ObservedRequest adopts TypedFetchRequest 2016-12-07 22:39:53 +01:00
Gwendal Roué 74e89c542a Cleanup 2016-12-07 18:45:14 +01:00
Gwendal Roué 255e12849e Fix failing test for change tracking of wrapped Record 2016-12-07 08:46:02 +01:00
Gwendal Roué 1c9416fbed Cleanup 2016-12-02 06:38:13 +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é bd32afbed2 Rename DatabaseWriter.readFromWrite to readFromCurrentState 2016-12-01 08:55:47 +01:00
Gwendal Roué c539166747 Cleanup 2016-12-01 06:08:30 +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é 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é 527aed0ea3 Documentation 2016-11-29 14:17:41 +01:00
Gwendal Roué a8e266377c Documentation 2016-11-29 12:02:29 +01:00
Gwendal Roué ee99abc266 Replace fetchCursor().next() with fetchOne() 2016-11-28 08:41:59 +01:00
Gwendal Roué f8029a6dc9 Remove a couple try! 2016-11-27 15:38:36 +01:00
Gwendal Roué 09697f2593 DAO.init() throws DatabaseError instead of crashing whenever table does not exist, or database can't be accessed 2016-11-27 15:23:00 +01:00
Gwendal Roué b8c05e551d Cleanup 2016-11-27 15:14:38 +01:00
Gwendal Roué 829eb7d3a2 SelectStatement.SelectionInfo cleanup 2016-11-27 15:12:08 +01:00