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
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é
c36ed7b660
Add failing test for Persistable.insert() after a previous failed insert.
2016-05-30 12:20:42 +02:00
Gwendal Roué
5e4923b5bc
More tests and documentation for DatabaseScheduler
2016-05-30 08:10:39 +02:00
Gwendal Roué
1d0f670100
Issue #61 : more savepoint tests
2016-05-28 20:39:27 +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é
32cd559379
Issue #61 : fix failing test for TransactionObserver and savepoints
2016-05-28 15:57:32 +02:00
Gwendal Roué
ad8551b746
Issue #61 : fix failing test for TransactionObserver and savepoints
2016-05-28 15:54:26 +02:00
Gwendal Roué
a26bef8813
Issue #61 : failing test for TransactionObserver with several identically named savepoints
2016-05-28 15:09:56 +02:00
Gwendal Roué
34dad07393
Issue #61 : failing test for Database.isInsideTransaction after a SAVEPOINT statement
2016-05-28 15:03:02 +02:00
Gwendal Roué
5453aec1d0
Issue #61 : fix failing test for TransactionObserver and savepoints
2016-05-28 15:00:26 +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é
9b6b66d22d
Issue #61 : fix failing test for TransactionObserver and savepoints
2016-05-28 14:25:39 +02:00
Gwendal Roué
83477c67d7
Issue #61 : failing tests for TransactionObserver and savepoints
2016-05-28 13:59:15 +02:00
Gwendal Roué
ac31392b90
Issue #61 : test TransactionObserver with a simple savepoint
2016-05-28 13:42:48 +02:00
Gwendal Roué
bc512e775c
Issue #60 : make PrimaryKey public
2016-05-25 08:41:54 +02:00
Gwendal Roué
5fe7c5d888
FetchRequest tests
2016-05-22 20:16:17 +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é
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é
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é
4c2a53ac26
Issue #50 : More MappedRowTests
2016-05-20 15:53:57 +02:00
Gwendal Roué
3fcbcb9455
Merge branch 'master' into RowAdapter
...
Conflicts:
TODO.md
2016-05-20 10:56:02 +02:00
Gwendal Roué
6bdf433e95
Issue #53 : add a FAQ entry for the Generic parameter 'T' could not be inferred error
2016-05-20 08:19:39 +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é
7772749e88
Fix DatabaseQueueTests for GRDBCipher tests
2016-05-19 15:28:56 +02:00
Gwendal Roué
a9d3dffd3c
Failing test for issue #54
2016-05-19 13:57:25 +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é
49b35a9216
More failing tests for issue #53
2016-05-19 09:05:12 +02:00
Gwendal Roué
a08bbbad29
Failing tests for issue #53
2016-05-19 09:02:20 +02:00
Gwendal Roué
3b93cf8e28
Issue #50 : More MappedRowTests
2016-05-19 08:32:34 +02:00
Gwendal Roué
75258afb6c
Issue #50 : Tests for FetchedRecordsController(...:adapter:)
2016-05-19 08:26:28 +02:00
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