Commit Graph
1676 Commits
Author SHA1 Message Date
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é 6ac2cd4686 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/AppDatabase.swift
	DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/Person.swift
	DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonEditionViewController.swift
	DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonsViewController.swift
	GRDB/Core/Support/Foundation/NSNumber.swift
	GRDB/Core/Support/StandardLibrary/StandardLibrary.swift
	GRDB/Record/FetchedRecordsController.swift
	Tests/Public/Core/DatabaseValueConvertible/NSNumberTests.swift
	Tests/Public/FetchedRecordsController/FetchedRecordsControllerTests.swift
2016-06-07 19:01:08 +02:00
Gwendal Roué f92d433a3e Test for FetchedRecordsController.trackChanges(fetchAlongside:) 2016-06-05 15:35:05 +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
Gwendal Roué d478e4b1f4 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis 2016-06-04 12:39:27 +02:00
Gwendal Roué ac9b2e8ba4 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis 2016-06-04 12:10:36 +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
Gwendal Roué e11673d15c Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB/Core/Database.swift
	GRDB/FetchRequest/SQLSelectQuery.swift
	GRDB/Record/FetchedRecordsController.swift
	GRDB/Record/TableMapping.swift
	Tests/Public/Core/Persistable/MutablePersistableTests.swift
	Tests/Public/Core/Persistable/PersistableTests.swift
	Tests/Public/Core/Savepoint/SavepointTests.swift
	Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift
	Tests/Public/Core/TransactionObserver/TransactionObserverTests.swift
2016-06-03 05:17:11 +02: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
swiftlyfalling 6664733650 Increase test coverage of FetchRequest.swift
Existing DatabaseValueConvertible tests were only testing the
`extension DatabaseValueConvertible where Self:
StatementColumnConvertible` cases.

Added tests to explicitly cover the cases where something conforms to
`DatabaseValueConvertible` but *not* `StatementColumnConvertible`, and
renamed the old tests.
2016-06-02 18:05:31 -04:00
swiftlyfalling f7a537ab91 Increase test coverage of DatabaseCoder.swift
Test failure cases.
2016-06-02 18:02:08 -04:00
swiftlyfalling 0506d47a4f Increase test coverage of DatabaseDateComponents.swift
Test init from nil NSDateComponents case.
2016-06-02 18:01:31 -04:00
swiftlyfalling e06bcab62b Increase test coverage of Row+Foundation.swift
Add missing test to verify initialization failure if NSDictionary has
invalid (non-String) keys.
2016-06-02 18:01:13 -04:00
swiftlyfalling 90061a4b25 Increase test coverage of StatementArguments+Foundation.swift
Test initializing failure from invalid NSArray, NSDictionary.
2016-06-02 17:59:47 -04:00
Gwendal Roué 5a17fa53cd More TODO 2016-06-02 20:48:57 +02:00
Gwendal Roué 88c284dbf1 Merge branch 'master' into Swift3bis
Conflicts:
	GRDB/Core/Database.swift
	GRDB/FetchRequest/QueryInterfaceRequest.swift
	GRDB/FetchRequest/SQLCollation.swift
	GRDB/FetchRequest/SQLFunction.swift
	GRDB/FetchRequest/SQLOperator.swift
	GRDB/FetchRequest/SQLSelectQuery.swift
	README.md
2016-06-02 20:47:04 +02:00
Gwendal Roué aa6097dff8 swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a 2016-06-02 19:58:58 +02:00
Gwendal Roué 7c4ff7677d swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a 2016-06-02 08:38:15 +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
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