Gwendal Roué
bf0f9e1fa2
Merge pull request #63 from swiftlyfalling/preupdate-hooks
...
Add support for SQLite Pre-Update Hooks (+ tests)
2016-06-02 13:29:26 +02:00
swiftlyfalling
f15a4df79e
Slow compilation fixes
...
Implemented a workaround for the cause of the two slowest-to-compile
methods.
2016-06-01 21:12:33 -04:00
swiftlyfalling
901b7a0f12
Add support for SQLite Pre-Update Hooks (+ tests)
...
If SQLITE_ENABLE_PREUPDATE_HOOK is defined, and GRDB is built with a
custom SQLite library with the functionality (see: GRDBCustomSQLite),
enable support for SQLite Pre-Update Hooks and the new
`willChangeWithEvent` callback on TransactionObservers.
2016-06-01 20:42:21 -04:00
Gwendal Roué
7206e46377
Relax FetchedRecordsController compareRecordsByPrimaryKey initializer argument by only requiring TableMapping protocol
2016-05-29 15:28:50 +02:00
Gwendal Roué
554b9a03b5
FetchedRecordsController: avoid instantiate records when building table view updates
2016-05-29 15:20:17 +02:00
Gwendal Roué
bc512e775c
Issue #60 : make PrimaryKey public
2016-05-25 08:41:54 +02:00
Gwendal Roué
6e259f9a0e
Rename SQLRequest to SQLFetchRequest
2016-05-22 20:21:30 +02:00
Gwendal Roué
1ee4437970
Fix Row.fetch(db, request) and RowConvertible.fetch(db, request) by using the request’s adapter.
2016-05-22 19:55:57 +02:00
Gwendal Roué
2f18d1ff8b
Merge branch 'master' into RowAdapter
...
Conflicts:
GRDB/Record/FetchedRecordsController.swift
2016-05-21 16:03:45 +02:00
Gwendal Roué
6c816bfdeb
Minor
2016-05-21 16:01:22 +02:00
Gwendal Roué
afa8cfce5e
Minor
2016-05-21 15:43:27 +02:00
Gwendal Roué
9794b72607
Fixes #55
2016-05-21 15:08:16 +02:00
Gwendal Roué
997a29e70b
Fixes #58
2016-05-21 12:15:36 +02:00
Gwendal Roué
d8b935369b
RowAdapter refactoring
2016-05-20 21:57:39 +02:00
Gwendal Roué
4e2f396b4a
RowAdapter refactoring
2016-05-20 21:00:50 +02:00
Gwendal Roué
daba5b2102
Merge branch 'master' into RowAdapter
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Record/FetchedRecordsController.swift
TODO.md
2016-05-19 20:40:26 +02:00
Gwendal Roué
5fac4abc07
Use FetchRequest instead of QueryInterfaceRequest where relevant
2016-05-19 13:35:45 +02:00
Gwendal Roué
5b57707b86
Rename FetchRequest to QueryInterfaceRequest
2016-05-19 13:08:36 +02:00
Gwendal Roué
fca37601dd
Issue #50 : Tests for RowConvertible.fetch(…:adapter:)
2016-05-19 06:37:56 +02:00
Gwendal Roué
55301efa3e
Issue #50 : FetchedRecordsController(…:adapter:)
2016-05-19 06:03:22 +02:00
Gwendal Roué
82052848ee
Issue #50 : RowConvertible.fetch(…:adapter:)
2016-05-19 05:55:42 +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é
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é
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é
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é
185c2575b6
Protect Persistable query cache with a thread-safe ReadWriteBox
2016-05-06 13:17:57 +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é
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