Commit Graph
1676 Commits
Author SHA1 Message Date
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é fe158d20ed Failing test that checks that a failed COMMIT is repaired with a ROLLBACK 2016-05-09 20:17:19 +02:00
Gwendal Roué db86ceca0e Tests that when Database is deallocated, there is no remaining busy update statement. 2016-05-07 13:18:50 +02:00
Gwendal Roué a54b0389ae Remove sharing of cached statements between database pool readers 2016-05-07 13:17:45 +02:00
Gwendal Roué fbb59d2d6c DatabaseReader.backup(to:) 2016-05-05 15:24:14 +02:00
Gwendal Roué 94797986a9 Expose FetchedRecordsController to OSX 2016-05-03 11:44:04 +02:00
Gwendal Roué bd67f86769 FetchedRecordsController tests WIP 2016-05-02 09:13:07 +02:00
Gwendal Roué 96a8a0f1fa FetchedRecordsController tests WIP 2016-05-01 16:56:17 +02:00
Gwendal Roué 4253a46282 FetchedRecordsController tests WIP 2016-05-01 14:06:04 +02:00
Gwendal Roué 660c255532 Drop obsolete test 2016-05-01 14:05:55 +02:00
Gwendal Roué 3956f1d183 FetchedRecordsController tests WIP 2016-05-01 14:00:00 +02:00
Gwendal Roué 234e1e6810 FetchedRecordsController tests WIP 2016-04-30 14:50:10 +02:00
Gwendal Roué 4c52d51aa2 Fix performance tests 2016-04-26 13:27:42 +02:00
Gwendal Roué 663b89a4a5 SQLite.swift 0.10.1 2016-04-26 13:13:51 +02:00
Gwendal Roué 0a4779ed8c Realm 0.99.1 2016-04-26 13:13:36 +02:00
Gwendal Roué 43e9a63210 FetchRequest.reverse() sort by descending rowID when no ordering has been specified. 2016-04-21 09:03:01 +02:00
Gwendal Roué 6550454d1e Replace DatabaseChanges with Database.lastInsertedRowID and Database.changesCount 2016-04-20 21:58:58 +02:00
Gwendal Roué 8d3796324d Update GRDBProfiling app to block-based database accesses. 2016-04-08 08:37:02 +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é 6ef4a6eb08 More tests for DatabasePool read that starts while a write is running. 2016-04-07 06:22:51 +02:00
Gwendal Roué 9e52513138 Explicit test for DatabasePool read that starts while a write is running. 2016-04-06 23:53:10 +02:00
Gwendal Roué e9043d1e93 Explicit test for DatabasePool read that starts while a write is running. 2016-04-06 21:29:49 +02:00
Gwendal Roué 18ba7ed086 Restore save(DatabaseQueue/Pool) 2016-04-05 18:31:06 +02:00
Gwendal Roué 4c3efab946 Test app for Carthage integration of GRDBCipher 2016-04-05 13:57:57 +02:00
Gwendal Roué 023d757964 Attempt to fix CocoaPods 2016-04-05 08:53:02 +02:00
Gwendal Roué d519a92719 testExportPlainTextDatabaseToEncryptedDatabase 2016-04-05 06:33:11 +02:00
Gwendal Roué f868d3eead changePassphrase() 2016-04-05 05:51:19 +02:00
Gwendal Roué 166ae08465 EncryptionTests: make sure we can not open a database encrypted with PRAGMA key 2016-04-04 13:34:32 +02:00
Gwendal Roué 15f3450f8c GRDBTestCase cleanup 2016-04-04 13:31:57 +02:00
Gwendal Roué 627bca09c0 SQLCipher: test compatibility between Configuration.passphrase and PRAGMA key 2016-04-03 22:57:12 +02:00
Gwendal Roué 484d5a5968 Framework for GRDB+SQLCipher is named GRDBCipher 2016-04-03 21:30:22 +02:00
Gwendal Roué eabacfafb2 Encryption tests 2016-04-03 20:39:20 +02:00
Gwendal Roué 2ec2e85679 Passing tests for encrypted databases 2016-04-03 18:42:31 +02:00
Gwendal Roué e0bb6d106c Failing tests for encrypted databases 2016-04-03 17:58:58 +02:00
Gwendal Roué e3d8c06ad0 Refactor tests so that DatabasePool can be configured at the target level. We are preparing tests for encrypted databases. 2016-04-03 16:55:04 +02:00
Gwendal Roué 7e3563f64b Refactor tests so that DatabaseQueue can be configured at the target level. We are preparing tests for encrypted databases. 2016-04-03 16:20:45 +02:00
Gwendal Roué 3e0fcc4b87 New GRDBCipherOSX target + tests 2016-04-03 11:40:34 +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é 2dfd6c79c0 Fix Carthage test app 2016-03-31 06:55:41 +02:00
Gwendal Roué 66fe22d716 Update Carthage test application 2016-03-29 13:07:40 +02:00
Gwendal Roué 4b479ad327 Merge branch 'master' into FetchedRecordsController
Conflicts:
	CHANGELOG.md
	DemoApps/GRDBDemoiOS/GRDBDemoiOS/Assets.xcassets/AppIcon.appiconset/Contents.json
	DemoApps/GRDBDemoiOS/GRDBDemoiOS/Database.swift
	TODO.md
2016-03-28 18:54:59 +02:00
Gwendal Roué 9a18ab44a6 Default unicode-aware collations 2016-03-28 18:12:29 +02:00
Gwendal Roué a97530bde8 The Query interface no longer use non-unicode aware UPPER and LOWER functions 2016-03-28 16:35:20 +02:00
Gwendal Roué d170b0d0e1 DatabaseEvent: make it lazy 2016-03-27 14:39:12 +02:00
Gwendal Roué deb25d916d Merge branch 'master' into FetchedRecordsController
Conflicts:
	TODO.md
2016-03-26 07:36:59 +01:00
Gwendal Roué bb5aa47d7b Tests for Row.databaseValue(atIndex:) and Row.databaseValue(named:) 2016-03-25 20:16:31 +01:00
Gwendal Roué 5ed3b39219 Rename DatabaseValue.unsafeValue() to failableValue() 2016-03-25 18:46:24 +01:00
Gwendal Roué ee55afe8c0 Row.value() no longer turns non-NULL values to nil, should the conversion fail. 2016-03-25 18:28:42 +01:00
Gwendal Roué 6bfab3d04a DatabaseValue.value() no longer turns non-NULL values to nil, should the conversion fail. The new method DatabaseValue.unsafeValue() has the old, information-discarding, behavior. 2016-03-25 13:56:38 +01:00
Gwendal Roué 293268a004 Query interface: fix SQL generation for boolean tests
For example,`valid == true` now generates `"valid"`
2016-03-24 13:59:43 +01:00