Commit Graph
969 Commits
Author SHA1 Message Date
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
Gwendal Roué d4c0dd824b Merge pull request #64 from swiftlyfalling/fix-slow-compile
Slow compilation fixes
2016-06-02 13:05:26 +02:00
Gwendal Roué cb36991cb2 Cleanup Query Interface protocols 2016-06-02 08:09:44 +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
swiftlyfalling 5cb4044408 Merge remote-tracking branch 'groue/master' into Custom-SQLite 2016-05-31 17:33:59 -04:00
Gwendal Roué df5a327da4 Top-level Database.inSavepoint opens a transaction if the default transaction kind is not DEFERRED 2016-05-31 13:09:33 +02:00
Gwendal Roué fe7e39776b Documentation 2016-05-31 06:49:35 +02:00
Gwendal Roué da33e480c3 Improve Database.execute() detection of white-space string endings 2016-05-31 06:47:44 +02:00
swiftlyfalling 30bc7e4f6c Replace most uses of #if SQLITE_HAS_CODEC with the appropriate USING_BUILTIN_SQLITE or USING_SQLCIPHER defines.
This enables easier compilation of a custom version of SQLite that
itself uses the SQLITE_HAS_CODEC define. (ex. If building SQLite with
the SQLite Encryption Extension.)
The SQLITE_HAS_CODEC define is now only used to guard use of the SQLite
encryption APIs.
GRDBCipher builds define USING_BUILTIN_SQLITE and USING_SQLCIPHER.
2016-05-30 18:19:45 -04:00
Gwendal Roué 90f304a881 Typo 2016-05-30 12:33:42 +02:00
Gwendal Roué ce7736a4b8 Failed statements can not be reused: remove them from the statement cache. 2016-05-30 12:21:20 +02:00
Gwendal Roué 9df4455f07 Minor 2016-05-30 08:22:00 +02:00
Gwendal Roué 5e4923b5bc More tests and documentation for DatabaseScheduler 2016-05-30 08:10:39 +02:00
Gwendal Roué 9d00189ac0 Inner Documentation 2016-05-30 07:46:40 +02:00
Gwendal Roué 3af2d7c0df Inner Documentation 2016-05-29 20:03:33 +02: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é 098e9fee8c Issue #61: TODO 2016-05-28 20:40:51 +02:00
Gwendal Roué ee7f505cde Issue #61: add savepoint sanity check 2016-05-28 20:39:02 +02:00
Gwendal Roué 4581850b05 Issue #61: since savepoint names can be reused and nested, there is no purpose forcing the user to name them: use a single default savepoint name. And provide thorough testing. 2016-05-28 18:57:07 +02:00
Gwendal Roué bc757016af Issue #61: Database.inSavepoint(named:) 2016-05-28 18:46:12 +02:00
Gwendal Roué 2cf606bdbd Issue #61: pass all tests for TransactionObserver and savepoints :-) 2016-05-28 15:59:20 +02:00
Gwendal Roué 03a5671bb0 Issue #61: prevent SelectStatement from hiding the update statements we track 2016-05-28 14:51:54 +02:00
Gwendal Roué 37c16fbb48 Issue #61: recognize savepoints statements 2016-05-28 14:44:37 +02:00
Gwendal Roué 92431f20d7 Issue #61: DatabaseEvent.copy() returns an event that can outlive a transaction observer’s databaseDidChangeWithEvent callback. 2016-05-28 14:27:25 +02:00
Gwendal Roué 8d540751e1 Issue #60: PrimaryKey documentation 2016-05-28 12:03:58 +02:00
Gwendal Roué fc8b2ee679 Issue #60: make cachedUpdateStatement() and cachedSelectStatement() public 2016-05-25 08:55:05 +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é 02a21b8050 FetchRequest documentation 2016-05-22 20:18:49 +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é eb726e47c3 RowAdapter documentation 2016-05-21 08:07:20 +02:00
Gwendal Roué 5378cd07bf RowAdapter documentation 2016-05-20 23:37:11 +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é 9dbf992c40 Configuration.maximumReaderCount replaces DatabasePool initializer option 2016-05-19 18:10:36 +02:00
Gwendal Roué 41f2cdc6e6 Documentation 2016-05-19 14:08:21 +02:00
Gwendal Roué cf572ea931 Documentation 2016-05-19 14:03:41 +02:00
Gwendal Roué 92e1336db0 Fix issue #54 2016-05-19 14:00:45 +02:00
Gwendal Roué 5fac4abc07 Use FetchRequest instead of QueryInterfaceRequest where relevant 2016-05-19 13:35:45 +02:00
Gwendal Roué 28a795eddb Rename FetchRequestType to FetchRequest 2016-05-19 13:09:30 +02:00
Gwendal Roué 06b824928b Rename FetchRequest to QueryInterfaceRequest 2016-05-19 13:08:48 +02:00
Gwendal Roué 5b57707b86 Rename FetchRequest to QueryInterfaceRequest 2016-05-19 13:08:36 +02:00