Commit Graph
172 Commits
Author SHA1 Message Date
Gwendal Roué 6550454d1e Replace DatabaseChanges with Database.lastInsertedRowID and Database.changesCount 2016-04-20 21:58:58 +02:00
Gwendal Roué 4bcff181c7 Back to block-based database accesses.
Rationale: https://medium.com/@gwendal.roue/four-different-ways-to-handle-sqlite-concurrency-db3bcc74d00e
2016-04-08 08:29:58 +02:00
Gwendal Roué 18ba7ed086 Restore save(DatabaseQueue/Pool) 2016-04-05 18:31:06 +02:00
Gwendal Roué 41fab091d0 GRDBCipheriOS 2016-04-03 22:16:30 +02:00
Gwendal Roué a355892ce5 FetchedRecordsController.setRequest(sql:arguments:) 2016-04-02 08:52:38 +02:00
Gwendal Roué 52c0f31578 FetchedRecordsController: rename writer property to databaseWriter 2016-04-02 08:46:04 +02:00
Gwendal Roué e132b54c9f FetchedRecordsController documentation 2016-04-02 08:41:19 +02:00
Gwendal Roué dc942c5734 The save() method now requires a Database connection argument, and won’t accept DatabaseQueue or DatabasePool directly. 2016-04-02 08:37:30 +02:00
Gwendal Roué 06095ec343 Fix #37 2016-03-31 10:27:12 +02:00
Gwendal Roué 669720c6dc v0.54.1 2016-03-29 19:07:32 +02:00
Gwendal Roué efdc6053ff FetchedRecordsController: fix concurrency bug 2016-03-29 08:53:55 +02:00
Gwendal Roué ab3ec443d2 Simplify SerializedDatabase 2016-03-29 08:26:07 +02:00
Gwendal Roué 50a62edbaf FetchedRecordsController documentation 2016-03-28 00:08:46 +02:00
Gwendal Roué afe2c9db2f FetchedRecordsController documentation 2016-03-28 00:05:20 +02:00
Gwendal Roué 3e3ba6e7ed FetchedRecordsController optimization for DatabasePool: release the writer dispatch queue before the end of the fetch 2016-03-27 14:22:32 +02:00
Gwendal Roué ea929a78e0 FetchedRecordsController TODO 2016-03-27 11:15:56 +02:00
Gwendal Roué c845c19477 FetchedRecordsController TODO 2016-03-27 11:15:31 +02:00
Gwendal Roué 05eb7b35f8 FetchedRecordsController can change its fetch request, and notify the delegate of changes 2016-03-26 17:41:45 +01:00
Gwendal Roué 77e245aec3 Make FetchedRecordsControllerDelegate methods optional 2016-03-26 16:26:39 +01:00
Gwendal Roué eaf8193d37 Documentation of didInsertWithRowID(rowID:forColumn:) 2016-03-26 16:26:28 +01:00
Gwendal Roué 8257b05c8f FetchedRecordsController documentation 2016-03-26 14:21:17 +01:00
Gwendal Roué 0912139fc5 FetchedRecordsController documentation 2016-03-26 14:10:40 +01:00
Gwendal Roué 4592566748 FetchedRecordsController documentation 2016-03-26 13:41:00 +01:00
Gwendal Roué 22851dd9e8 FetchedRecordsController: fix indexPathForRecord 2016-03-26 13:37:56 +01:00
Gwendal Roué 87bab96097 FetchedRecordsController only tracks changes when it has a delegate. 2016-03-26 13:35:00 +01:00
Gwendal Roué 81ed566467 FetchedRecordsController TODO 2016-03-26 12:17:52 +01:00
Gwendal Roué 336220d998 FetchedRecordsController documentation 2016-03-26 08:34:08 +01:00
Gwendal Roué 859e71d976 FetchedRecordsController documentation 2016-03-26 08:23:09 +01:00
Gwendal Roué 18a63504ed FetchedRecordsController documentation 2016-03-25 08:45:12 +01:00
Gwendal Roué b13ad57ea5 FetchedRecordsController: Back to delegate pattern 2016-03-24 13:35:11 +01:00
Gwendal Roué eba839b58e FetchedRecordsController: Cleanup 2016-03-24 08:37:19 +01:00
Gwendal Roué 36a480a5fc FetchedRecordsController: Clean up 2016-03-24 06:33:05 +01:00
Gwendal Roué 9102c94db2 FetchedRecordsController: Fix tableView crashes 2016-03-23 20:04:00 +01:00
Gwendal Roué b24c872b52 RowConvertible.awakeFromFetch loses its database argument. FetchedRecordsController lazily instantiates records. 2016-03-23 13:44:05 +01:00
Gwendal Roué fdb31f37ba FetchedRecordsController: let the user choose the callback queue 2016-03-23 13:24:52 +01:00
Gwendal Roué c4c0e67407 FetchedRecordsController.recordAtIndexPath returns a non-optional (as NSFetchedResultsController does) 2016-03-23 09:08:38 +01:00
Gwendal Roué d0c5e98366 FetchedRecordsController: add initializer that compares record by primary key (if the record adopts MutablePersistable) 2016-03-23 08:54:02 +01:00
Gwendal Roué 83c5afdd2d FetchedRecordsController: define record comparison function in the controller’s initializer 2016-03-23 08:32:57 +01:00
Gwendal Roué 32461d221a Merge commit '7de27389aa89f731b977e2d046c8b12ff2191e5d' into FetchedRecordsController 2016-03-22 21:06:04 +01:00
Gwendal Roué e3ee49a868 FetchedRecordsController: properly serialize computations, require client access from main thread, fix known crashers 2016-03-21 14:08:36 +01:00
Gwendal Roué b45c711483 FetchedResultsController: replace "Result" by "Record", and "Change" by "Event" (this leaves changes free for actual row changes) 2016-03-17 13:27:06 +01:00
Gwendal Roué bebcefddcc FetchedResultsController: replace Delegate protocol with callbacks.
This change was required because the generic delegate methods did prevent the delegate to know the type of the changed objects.
2016-03-17 13:15:27 +01:00
Gwendal Roué a308ffebeb Merge branch 'master' of github.com:groue/GRDB.swift into Swift2.2 2016-03-17 08:02:06 +01:00
Matthew Purland 97f9805afa Fixed Swift 2.2 compile error 2016-03-16 23:01:26 -07:00
Gwendal Roué 6d0cdcd20b FetchedResultsController: improve delegate API by extracting the rarely used changed object from the ResultChange enum 2016-03-16 23:33:31 +01:00
Gwendal Roué a8e85f2c41 FetchedResultsController: cleanup 2016-03-16 22:43:04 +01:00
Gwendal Roué 2e11551bd7 FetchedResultsController: cleanup 2016-03-16 22:04:23 +01:00
Gwendal Roué ea7aae603d FetchedResultsController: full features! 2016-03-16 21:49:30 +01:00
Gwendal Roué 09abd1e5cd FetchedResultsController: don’t notify delegate when there is no change 2016-03-16 20:05:13 +01:00
Gwendal Roué d455e50a27 FetchedResultsController (breaking commit): attempt to communicate updates and changes 2016-03-16 14:11:15 +01:00