Commit Graph
1676 Commits
Author SHA1 Message Date
Gwendal Roué a35c453423 Fix flaky test ConcurrencyTests.testBusyCallback 2017-05-25 18:54:02 +02:00
Gwendal Roué 4886f43463 Rewrite tests that check that closing a connection does not break unclosed statements (this should fix #216) 2017-05-25 18:39:38 +02:00
Gwendal Roué 929c8ac2b5 GRDB has no longer iterators, but cursors 2017-05-25 18:23:14 +02:00
Gwendal Roué 55e4abd534 Rename USING_SQLCIPHER to GRDBCIPHER and USING_CUSTOMSQLITE to GRDBCUSTOMSQLITE 2017-05-22 19:15:10 +02:00
Gwendal Roué f858bcbe5b Rename Request.fetching(_:) to Request.asRequest(of:) 2017-05-22 18:55:51 +02:00
Gwendal Roué cd107711a9 Rename Request.bound(to:) to Request.fetching(_:) 2017-05-22 18:37:46 +02:00
Gwendal Roué ce4c20b112 Replace DatabaseWriter.availableDatabaseConnection with unsafeReentrantWrite() 2017-05-22 18:10:19 +02:00
Gwendal Roué 1e12068e64 DatabaseEventKind.impacts(_ selectionInfo:SelectStatement.SelectionInfo) now returns an non-optional boolean. 2017-05-22 13:53:59 +02:00
Gwendal Roué 1799fe1ff9 Consistently crash for all failed conversions from DatabaseValue 2017-05-22 13:51:39 +02:00
Gwendal Roué 798b1a7d2e Tests for DatabaseEventKind.impacts(_ selectionInfo: SelectStatement.SelectionInfo) and triggers. 2017-05-10 13:35:55 +02:00
Gwendal Roué e484e4c6de Tests for DatabaseEventKind.impacts(_ selectionInfo: SelectStatement.SelectionInfo) and foreign keys. 2017-05-10 13:26:57 +02:00
Gwendal Roué f606e633da Drop RowConvertible.awakeFromFetch 2017-05-05 13:20:37 +02:00
Gwendal Roué 4938568ea7 Refactor statement cache, allow SQLRequest to use cached statements 2017-05-04 20:11:45 +02:00
Gwendal Roué 96c3dadb7b Tests/README.md 2017-04-23 18:38:17 +02:00
Gwendal Roué a475cfa340 Tests organization 2017-04-23 16:37:59 +02:00
Gwendal Roué e54cec9123 Move tests to Swift Package Manager test target 2017-04-23 15:47:16 +02:00
Gwendal Roué 595408b351 Rename logErrorFunction into logError 2017-04-22 17:57:33 +02:00
Gwendal Roué 4f14fb0ccd Support for SQLITE_CONFIG_LOG via Database.logErrorFunction 2017-04-22 15:11:01 +02:00
Gwendal Roué 9b2a8f847f Remove some useless availability checks in tests 2017-04-22 15:04:47 +02:00
Gwendal Roué 1810edfa6e Sample SPM executable 2017-04-11 13:58:41 +02:00
Gwendal Roué 17a49b5d8c New public property: DatabaseWriter.availableDatabaseConnection. This new API opens the door to reentrant uses of the database, a much needed tool for RxGRDB. 2017-04-06 11:02:49 +02:00
Gwendal Roué 6c6bbf6294 Fix failing test for SELECT COUNT(*) FROM table observation 2017-04-06 10:35:41 +02:00
Gwendal Roué 7395305f87 Failing test for SELECT COUNT(*) FROM table observation 2017-04-05 10:45:37 +02:00
Gwendal Roué 26aeb7dcbd New public function: TableMapping.primaryKeyRowComparator. This new API exposes record comparison abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions. 2017-04-02 17:27:25 +02:00
Gwendal Roué 311ad6b940 New public APIs: SelectStatement.selectionInfo, DatabaseEventKind.impacts(_:). Those new APIs expose database observation abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions. 2017-04-01 16:01:55 +02:00
Gwendal Roué 51545c4db0 Share tested schemes + test GRCBCipheriOS installation (addresses #193) 2017-03-31 13:23:08 +02:00
Gwendal Roué fa2817ab52 GRDBCipher test app 2017-03-31 08:53:37 +02:00
Gwendal Roué d7e68c340c Disable fragile test DatabasePoolBackupTests.testConcurrentWriteDuringBackup 2017-03-31 05:59:40 +02:00
Gwendal Roué 8dfe166944 CocoaPods test 2017-03-26 16:32:35 +02:00
Gwendal Roué 323d828eb7 Fix the test project for Carthage installation of GRDB on iOS 2017-03-26 15:37:46 +02:00
Gwendal Roué bb763f7315 Remove the test project for the no longer supported installation of GRDBCipher via Carthage 2017-03-26 15:37:39 +02:00
Gwendal Roué b1d93112da Embed a copy of sqlite3.h in order to work around my inability at importing <sqlite3.h> from all targeted SDKs (addresses #166, #170) 2017-03-26 15:37:31 +02:00
Gwendal Roué 56bd3513a3 Fix FTS3 pattern test so that it compiles when support for FTS5 is available 2017-03-26 15:14:18 +02:00
Gwendal Roué ba4ee3f1fc Bugfix 2017-03-26 15:09:05 +02:00
Gwendal Roué e2e2c58d9f Add availability checks for FTS3Pattern(matchingAnyTokenIn:), FTS3Pattern(matchingAllTokensIn:), FTS3Pattern(matchingPhrase:) 2017-03-26 14:51:11 +02:00
Gwendal Roué 7a90b9ce23 Add availability checks for FTS3 unicode61 tokenizer, FTS4 unindexed columns, and partial indexes. 2017-03-26 14:41:15 +02:00
Gwendal Roué b159c30cf1 SQLITE_CONSTRAINT_FOREIGNKEY was added in SQLite 3.7.16 (iOS 8.2+ and OS X 10.10+) 2017-03-26 13:17:59 +02:00
Gwendal Roué 5c7712bf6c PRAGMA query_only was added in SQLite 3.8.0 (iOS 8.2+ and OS X 10.10+) 2017-03-26 13:17:25 +02:00
Gwendal Roué 8d4522227c Replace all assertNoError and try! with throwing tests 2017-03-25 16:31:54 +01:00
Gwendal Roué eee39a7c0b Improve unexpected error reporting 2017-03-25 14:15:04 +01:00
Gwendal Roué bd58c18bb0 Simplify cursor step failure steps 2017-03-25 14:14:42 +01:00
Gwendal Roué 4e82a482d1 DatabaseCursor: test preservation of custom error codes 2017-03-25 14:12:47 +01:00
Gwendal Roué f2bb8bb8af Remove DatabaseValue.value() 2017-03-24 20:05:02 +01:00
Gwendal Roué 88f206e7f5 New DatabaseReader.read() guarantee: database modifications are prevented 2017-03-24 09:18:24 +01:00
Gwendal Roué 10d0d162b5 Performance tests against Realm 2.4.3, SQLite.swift 0.11.2 2017-03-09 17:25:35 +01:00
Gwendal Roué 7a10486492 DatabaseError conversion to NSError preserves extended result code 2017-03-03 08:14:36 +01:00
Gwendal Roué 842831d729 Merge branch 'master' into RequestFetchCount 2017-03-02 13:01:13 +01:00
Gwendal Roué 2729892676 Merge branch 'master' into Issue171 2017-03-02 12:58:42 +01:00
Gwendal Roué 50318354a6 Merge branch 'master' into RequestFetchCount 2017-03-02 12:56:57 +01:00
Gwendal Roué 77593c8031 Fix RequestTests.swift so that it tests the Request protocol, not the concrete type that adopts it. 2017-03-02 10:54:27 +01:00