Commit Graph
3061 Commits
Author SHA1 Message Date
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é 5c6bccd7b3 Issue #50: Row equality now compares subrows 2016-05-18 16:25:24 +02:00
Gwendal Roué 51130c354b Issue #50: More MappedRowTests 2016-05-18 13:55:02 +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é a7266e38c4 Issue #51: Database.close() logs when sqlite_close() fails 2016-05-17 20:30:50 +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é c13ac87a5b Database.primaryKey(): work around an SQLite bug 2016-05-17 19:40:17 +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é d5367fc2b2 Issue #51: Perform Database.close() in the correct queue 2016-05-17 19:03:07 +02:00
Gwendal Roué 6f779faa05 Documentation 2016-05-17 13:45:39 +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é 84929771be RowAdapter initial implementation 2016-05-13 11:30:44 +02:00
Gwendal Roué 494682c2af FetchedRecordsController iOS fixes 2016-05-12 08:15:24 +02:00
Gwendal Roué d48d0e621f FetchedRecordsController documentation 2016-05-12 07:59:38 +02:00
Gwendal Roué 5c065d3f8a FetchedRecordsController documentation 2016-05-12 07:54:57 +02:00
Gwendal Roué b13fc99797 FetchedRecordsController: hide all UITableView-related methods from OSX 2016-05-11 23:24:30 +02:00
Gwendal Roué 1f30f8dcf3 FetchedRecordsController: hide all UITableView-related methods from OSX 2016-05-11 19:35:45 +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é f9d82b8ead FetchedRecordsController cleanup 2016-05-10 09:12:27 +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é 10d20748ad SQLITE_FULL, SQLITE_IOERR, SQLITE_BUSY, and SQLITE_NOMEM errors can mean that a transaction has been automatically rollbacked: update isInsideTransaction flag accordingly. 2016-05-09 20:52:36 +02:00
Gwendal Roué fe5ef03bc8 A failed COMMIT is repaired with a ROLLBACK 2016-05-09 20:17:30 +02:00
Gwendal Roué 95cb311f6c More TODO 2016-05-09 08:06:26 +02:00
Gwendal Roué e1bb98ec94 Less TODO 2016-05-08 19:49:34 +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é 6c826b6ecf Statement: don’t store sql string, and use sqlite3_sql instead. Plus some cleanup. 2016-05-07 11:57:35 +02:00
Gwendal Roué 8e864b9df4 Use sqlite3_close_v2, and check its result 2016-05-07 11:37:33 +02:00
Gwendal Roué 6e0837325c Documentation 2016-05-07 11:34:24 +02:00
Gwendal Roué b237df4b6d Use sqlite3_close_v2 2016-05-07 11:34:18 +02:00
Gwendal Roué 96f8a57f44 minor 2016-05-07 09:50:55 +02:00
Gwendal Roué a0ecab10ac Cleanup 2016-05-06 13:30:40 +02:00
Gwendal Roué 185c2575b6 Protect Persistable query cache with a thread-safe ReadWriteBox 2016-05-06 13:17:57 +02:00
Gwendal Roué 565f627429 Reimplement ReadWriteBox with GCD 2016-05-06 13:01:28 +02:00
Gwendal Roué ef4f483a9e Typo 2016-05-06 12:35:47 +02:00
Gwendal Roué 92538de969 Remove useless warnings in the documentation of DatabaseReader.backup(to:)
GRBD serializes uses of writer connections: it’s useless to warn the user against using a database during a backup.
2016-05-05 15:37:41 +02:00
Gwendal Roué fbb59d2d6c DatabaseReader.backup(to:) 2016-05-05 15:24:14 +02:00
Gwendal Roué 03debbf434 Documentation 2016-05-05 13:51:27 +02:00
Gwendal Roué f3bc909a02 From future import Swift 3 2016-05-05 13:23:28 +02:00
Gwendal Roué 94797986a9 Expose FetchedRecordsController to OSX 2016-05-03 11:44:04 +02:00
Gwendal Roué 9f4b03c14f Mark methods that are slow to compile (thanks to https://medium.com/swift-programming/speeding-up-slow-swift-build-times-922feeba5780) 2016-04-28 06:36:23 +02:00
Gwendal Roué f93b029b82 TODO 2016-04-26 08:49:27 +02:00
Gwendal Roué 000bd1b200 Database.isInsideTransaction 2016-04-23 09:56:47 +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