Commit Graph
3061 Commits
Author SHA1 Message Date
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é deb25d916d Merge branch 'master' into FetchedRecordsController
Conflicts:
	TODO.md
2016-03-26 07:36:59 +01:00
Gwendal Roué 644ec3caec DatabaseValue.value() raises a fatal error when conversion of a non-NULL value fails. 2016-03-25 20:17:31 +01:00
Gwendal Roué b9338b31bc Row.databaseValue(atIndex:) and Row.databaseValue(named:) 2016-03-25 20:16:23 +01:00
Gwendal Roué 5ed3b39219 Rename DatabaseValue.unsafeValue() to failableValue() 2016-03-25 18:46:24 +01:00
Gwendal Roué ee55afe8c0 Row.value() no longer turns non-NULL values to nil, should the conversion fail. 2016-03-25 18:28:42 +01:00
Gwendal Roué 6bfab3d04a DatabaseValue.value() no longer turns non-NULL values to nil, should the conversion fail. The new method DatabaseValue.unsafeValue() has the old, information-discarding, behavior. 2016-03-25 13:56:38 +01:00
Gwendal Roué 18a63504ed FetchedRecordsController documentation 2016-03-25 08:45:12 +01:00
Gwendal Roué 293268a004 Query interface: fix SQL generation for boolean tests
For example,`valid == true` now generates `"valid"`
2016-03-24 13:59:43 +01:00
Gwendal Roué c558d8fcaa Query interface: fix SQL generation for boolean tests
For example,`valid == true` now generates `"valid" <> 0`
2016-03-24 13:50:52 +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é 049148305f Simplify throwing initializers since Swift 2.2 allows partial initialization 2016-03-22 08:28:55 +01:00
Gwendal Roué 90f468c329 Remove Swift warning 2016-03-21 23:31:10 +01:00
Gwendal Roué a6af89755d Merge branch 'master' into Swift2.2 2016-03-21 23:09:02 +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é af538c4feb Improve test for migration with disabled foreign key checks 2016-03-18 06:44:24 +01:00
Gwendal Roué cc6f2c00df Fix ==(Row, Row) 2016-03-18 06:21:22 +01:00
Gwendal Roué 3293a33f38 Row adopts Equatable 2016-03-18 06:21:16 +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é c6f96906ca Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator). 2016-03-17 08:54:09 +01:00
Gwendal Roué 4f427601d4 Dictionary(_ sequence:) renamed to Dictionary(keyValueSequence:) 2016-03-17 08:08:26 +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
Gwendal Roué f7d9970842 Fix ==(Row, Row) 2016-03-16 14:09:29 +01:00
Gwendal Roué b4a7ba239c FetchedResultsController: improve general API consistency: use unlabelled arguments 2016-03-16 09:12:10 +01:00
Gwendal Roué 86e3fc7075 FetchedResultsController: improve resultAtIndexPath performance 2016-03-16 09:07:00 +01:00
Gwendal Roué be2ef28fad FetchedResultsController: throw errors for invalid sql arguments 2016-03-16 09:02:44 +01:00
Gwendal Roué b9f7ea187d FetchedResultsController: remove Equatable requirement on fetched type. 2016-03-16 08:40:24 +01:00
Gwendal Roué c8f5f1ae1d Row adopts Equatable 2016-03-16 08:36:55 +01:00
Gwendal Roué 92b8b00a49 FetchedResultsController: remove TableMapping requirement 2016-03-15 20:26:34 +01:00
Gwendal Roué eeddb32ab6 FetchedResultsController: only listen to changes in observed tables 2016-03-15 20:23:23 +01:00
Gwendal Roué c1a59a015c FetchedResultsController: perform the changes computation in a background queue 2016-03-15 19:49:00 +01:00
Gwendal Roué bc3b13d719 FetchedResultsController.indexPathForResult(_) is not implemented 2016-03-15 19:30:06 +01:00