Commit Graph
151 Commits
Author SHA1 Message Date
Gwendal Roué 0fb1eec3cd Row adopts DictionaryLiteralConvertible 2016-07-31 06:18:16 +02:00
Gwendal Roué b16656bd23 Partial update WIP: cache & column case insensitivity 2016-07-28 19:28:46 +02:00
Gwendal Roué 176a23fe97 Partial update WIP: tests 2016-07-28 08:53:17 +02:00
Gwendal Roué 50ce433bcb Partial update WIP: public API 2016-07-28 08:25:08 +02:00
Gwendal Roué fcf90a053a Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public 2016-07-21 19:08:27 +02:00
Gwendal Roué 34ff64b103 Rename DatabaseScheduler to SchedulingWatchdog 2016-07-08 18:22:34 +02:00
Gwendal Roué 88e8c2ba33 #80 cleanup 2016-07-08 16:10:38 +02:00
Gwendal Roué e664ab18ee Fixes #80 2016-07-08 14:30:45 +02:00
Gwendal Roué 358c3ab0c3 Row adapters: rename "variants" to "scopes" 2016-07-08 08:44:41 +02:00
Gwendal Roué aaf184ddb3 Tests for StatementColumnConvertible fetching methods with adapter 2016-06-28 14:46:26 +02:00
Gwendal Roué 21e9e64b3d DatabaseValueConvertible and StatementColumnConvertible can now be fetched through a RowAdapter. DatabaseValueConvertible: raise a fatal error instead of converting to nil for invalid conversions triggered by fetch() methods. 2016-06-28 13:54:45 +02:00
Gwendal Roué cae3d7b321 Support for NSUUID 2016-06-20 22:37:31 +02:00
Gwendal Roué e0ea5af18e Refactor database events filtering 2016-06-20 20:38:31 +02:00
Gwendal Roué 6a466fcb12 Detailed database changes observation 2016-06-20 15:21:14 +02:00
Gwendal Roué 9a397c1ff8 Emoji tests 2016-06-19 11:14:11 +02:00
Gwendal Roué a882a5f346 RowAdapter documentation 2016-06-08 20:54:25 +02:00
Gwendal Roué 390cf44a88 RowAdapter documentation 2016-06-08 09:00:22 +02:00
Gwendal Roué 3e71253ffb RowAdapter documentation 2016-06-08 08:17:37 +02:00
Gwendal Roué 7a13b9c4b7 More RowAdapter tests 2016-06-08 06:20:27 +02:00
Gwendal Roué 15f9aabaf0 SuffixRowAdapter 2016-06-07 22:18:13 +02:00
Gwendal Roué c617a8f354 RowAdapter refactoring 2016-06-07 21:44:32 +02:00
Gwendal Roué 7186c9a3a0 #68: take care of Int, Int32 and Int64 overflow when converting from database values 2016-06-05 13:49:47 +02:00
Gwendal Roué a5760a7462 #68: NSNumber.databaseValue raises explicit fatal error when value doesn’t fit Int64 2016-06-05 12:16:37 +02:00
swiftlyfalling 7e1eb5a970 Increase test coverage of DatabaseQueue 2016-06-03 08:36:25 -04:00
swiftlyfalling f231218a69 Increase test coverage of DatabaseValue.swift 2016-06-03 08:35:56 -04:00
swiftlyfalling e21c9cb8f0 Revert "Increase test coverage of DatabaseValue.swift"
This reverts commit 58084c6a65.
2016-06-03 08:35:04 -04:00
swiftlyfalling 8597808a61 Revert "Increase test coverage of DatabaseQueue"
This reverts commit 5ffac12f5b.
2016-06-03 08:34:41 -04:00
swiftlyfalling 066a4de15f Added tests
For:
- NSNull.swift
- NSNumber.swift
- NSString.swift
- NSURL.swift
- DatabaseValue+Foundation.swift
2016-06-02 19:25:42 -04:00
swiftlyfalling 5ffac12f5b Increase test coverage of DatabaseQueue 2016-06-02 18:20:08 -04:00
swiftlyfalling b24631345b Increase test coverage of NSData.swift 2016-06-02 18:08:28 -04:00
swiftlyfalling ab3332ed8f Add test of removeTransactionObserver() 2016-06-02 18:07:42 -04:00
swiftlyfalling 58084c6a65 Increase test coverage of DatabaseValue.swift 2016-06-02 18:06:35 -04:00
Gwendal Roué 5a17fa53cd More TODO 2016-06-02 20:48:57 +02: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
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