Commit Graph
157 Commits
Author SHA1 Message Date
Gwendal Roué fca37601dd Issue #50: Tests for RowConvertible.fetch(…:adapter:) 2016-05-19 06:37:56 +02:00
Gwendal Roué c891c3cff8 Merge branch 'master' into RowAdapter 2016-05-19 05:40:15 +02:00
Gwendal Roué 917e75050e Merge branch 'master' into RowAdapter
Conflicts:
	GRDB/Core/Row.swift
2016-05-19 05:35:20 +02:00
Gwendal Roué f553f2d2b0 Remove Row subscripting by column name; row.databaseValue(named:) returns an optional DatabaseValue 2016-05-18 19:03:29 +02:00
Gwendal Roué 4185de77e0 Remove DatabaseValue.failableValue() 2016-05-18 18:40:03 +02:00
Gwendal Roué 695279e784 Issue #50: More MappedRowTests 2016-05-18 16:28:06 +02:00
Gwendal Roué 51130c354b Issue #50: More MappedRowTests 2016-05-18 13:55:02 +02:00
Gwendal Roué 79d1845266 Issue #50: More RowAdapterTests 2016-05-18 09:16:03 +02:00
Gwendal Roué 4f1173e609 Issue #50: More RowAdapterTests 2016-05-18 09:10:48 +02:00
Gwendal Roué 23178a2727 Issue #50: More RowAdapterTests 2016-05-18 09:09:09 +02:00
Gwendal Roué 60ab73d8a4 Issue #50: AdaptedRowImpl preserves column ordering 2016-05-18 09:04:39 +02:00
Gwendal Roué 2a39120b38 Issue #50: RowAdapter mappings have mandatory matching columns in the iterated statement. 2016-05-18 08:27:52 +02:00
Gwendal Roué c5bc699c26 Merge branch 'master' into RowAdapter 2016-05-18 07:53:17 +02:00
Gwendal Roué c1169f0d2c Issue #51: Restore statement caching, now that the database is closed in the correct queue. 2016-05-17 20:08:55 +02:00
Gwendal Roué 37d7c178f5 DatabaseMigratorTests: accept various error messages from various SQLite versions 2016-05-17 19:43:15 +02:00
Gwendal Roué c34d64b3bb DatabaseErrorTests: accept various error messages from various SQLite versions 2016-05-17 19:43:07 +02:00
Gwendal Roué 8934596527 DatabaseErrorTests: accept various error messages from various SQLite versions 2016-05-17 19:40:47 +02:00
Gwendal Roué 09ea2dcd10 PRAGMA defer_foreign_keys is not available until iOS 8.2 and OS X 10.10 2016-05-17 19:25:04 +02:00
Gwendal Roué 1dd6707070 Support for advanced migrations is not available until iOS 8.2 and OS X 10.10 2016-05-17 19:24:39 +02:00
Gwendal Roué 0333406fbc Fix tests for 32bits systems 2016-05-17 19:02:06 +02:00
Gwendal Roué 82fa559962 Issue #51: sqlite3_close_v2() is not available until iOS 8.2 and OS X 10.10. Until then, use sqlite3_close(), and avoid caching statements. Disable the concurrency tests that check database deallocation while some statements are running. 2016-05-17 13:39:29 +02:00
Gwendal Roué eca93cb43f Fix some tests for iOS8 2016-05-17 13:00:34 +02:00
Gwendal Roué 04e648b3f9 More RowAdapter tests 2016-05-13 11:37:31 +02:00
Gwendal Roué 6de0debb49 More RowAdapter tests 2016-05-13 11:35:38 +02:00
Gwendal Roué 84929771be RowAdapter initial implementation 2016-05-13 11:30:44 +02:00
Gwendal Roué 5c065d3f8a FetchedRecordsController documentation 2016-05-12 07:54:57 +02:00
Gwendal Roué 1f30f8dcf3 FetchedRecordsController: hide all UITableView-related methods from OSX 2016-05-11 19:35:45 +02:00
Gwendal Roué fbb40e1232 FetchedRecordsController: tests that trackChanges { ... } trailing closure is invoked after records have been changed. 2016-05-11 10:45:48 +02:00
Gwendal Roué 1d5999e50b FetchedRecordsController: expose UITableView-targetted callbacks to iOS only 2016-05-11 10:36:51 +02:00
Gwendal Roué 050f432c10 FetchedRecordsController: callbacks must be set all at once. Restore optional tracking. 2016-05-11 08:32:11 +02:00
Gwendal Roué 1201f4e008 FetchedRecordsController: replace delegate with callbacks 2016-05-10 14:16:13 +02:00
Gwendal Roué fba181bfea FetchedRecordsController: notify delegate of eventual changes when the delegate is set after performFetch() has been called.
With this change, it doesn’t matter if the delegate setter is called before of after performFetch().
2016-05-10 08:17:20 +02:00
Gwendal Roué fe158d20ed Failing test that checks that a failed COMMIT is repaired with a ROLLBACK 2016-05-09 20:17:19 +02:00
Gwendal Roué db86ceca0e Tests that when Database is deallocated, there is no remaining busy update statement. 2016-05-07 13:18:50 +02:00
Gwendal Roué a54b0389ae Remove sharing of cached statements between database pool readers 2016-05-07 13:17:45 +02:00
Gwendal Roué fbb59d2d6c DatabaseReader.backup(to:) 2016-05-05 15:24:14 +02:00
Gwendal Roué 94797986a9 Expose FetchedRecordsController to OSX 2016-05-03 11:44:04 +02:00
Gwendal Roué bd67f86769 FetchedRecordsController tests WIP 2016-05-02 09:13:07 +02:00
Gwendal Roué 96a8a0f1fa FetchedRecordsController tests WIP 2016-05-01 16:56:17 +02:00
Gwendal Roué 4253a46282 FetchedRecordsController tests WIP 2016-05-01 14:06:04 +02:00
Gwendal Roué 660c255532 Drop obsolete test 2016-05-01 14:05:55 +02:00
Gwendal Roué 3956f1d183 FetchedRecordsController tests WIP 2016-05-01 14:00:00 +02:00
Gwendal Roué 234e1e6810 FetchedRecordsController tests WIP 2016-04-30 14:50:10 +02:00
Gwendal Roué 4c52d51aa2 Fix performance tests 2016-04-26 13:27:42 +02:00
Gwendal Roué 663b89a4a5 SQLite.swift 0.10.1 2016-04-26 13:13:51 +02:00
Gwendal Roué 0a4779ed8c Realm 0.99.1 2016-04-26 13:13:36 +02:00
Gwendal Roué 43e9a63210 FetchRequest.reverse() sort by descending rowID when no ordering has been specified. 2016-04-21 09:03:01 +02:00
Gwendal Roué 6550454d1e Replace DatabaseChanges with Database.lastInsertedRowID and Database.changesCount 2016-04-20 21:58:58 +02:00
Gwendal Roué 8d3796324d Update GRDBProfiling app to block-based database accesses. 2016-04-08 08:37:02 +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