Commit Graph
1676 Commits
Author SHA1 Message Date
Gwendal Roué 8ccc23333d Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor. 2017-08-23 08:16:30 +02:00
Gwendal Roué 2d5dd7ef63 Update GRDBProfiling project 2017-08-21 08:47:53 +02:00
Gwendal Roué c5da564fb3 Use built-in SQLite3 module when available 2017-08-19 15:21:44 +02:00
Gwendal Roué 20419834a6 Sequence.Iterator.Element -> Sequence.Element 2017-08-18 18:10:56 +02:00
Gwendal Roué c700f5fc68 Move TableMapping deletion methods to MutablePersistable (prevent TableMapping from being able to modify the database) 2017-08-18 17:15:10 +02:00
Gwendal Roué 96159bd09c RowConvertible.fetchCursor(_:keys:) returns a non-optional cursor. 2017-08-18 16:48:06 +02:00
Gwendal Roué 376d295853 Replace TableMapping.selectsRowID with TableMapping.databaseSelection 2017-08-18 16:27:24 +02:00
Gwendal Roué 4ec3e0f7d8 Drop deprecated TableMapping.primaryKeyRowComparator(_:) 2017-08-18 14:30:28 +02:00
Gwendal Roué da440a5e16 Swift 4 + SPM
- Upgrade Tests/SPM package layout and format to version 4, and have `make test_install_SPM` succeed
- Update .gitignore in order to ignore Package.resolved instead of Package.pins
2017-08-18 14:22:15 +02:00
Gwendal Roué 1f5d75d8e9 Fix a compiler error in Xcode 9 beta 5 (and improve tests for DatabaseValue conformance to Equatable) 2017-08-18 14:22:14 +02:00
Gwendal Roué dc75ca4caf SE-0166 2017-08-18 14:22:14 +02:00
Gwendal Roué 823b094b60 SE-0168 2017-08-18 14:22:14 +02:00
Gwendal Roué 06a6c982aa SE-0148 2017-08-18 14:22:14 +02:00
Gwendal Roué 2fd071d90e NSLocalizedDescriptionKey 2017-08-18 14:20:35 +02:00
Gwendal Roué badec62cdd SE-0110 2017-08-18 14:20:35 +02:00
Gwendal Roué 895cda4de7 Xcode 9 beta 3 project updates 2017-08-18 14:20:35 +02:00
Gwendal Roué 10af87a7d0 SQLite 3.20.0 2017-08-18 08:35:02 +02:00
Gwendal Roué 44d31ead76 Implement deleteAll(_:keys:), deleteOne(_🔑) on top of the Query Interface 2017-07-21 11:19:24 +02:00
Gwendal Roué ec163e94eb Implement fetchCursor(_:keys:), fetchAll(_:keys:), and fetchOne(_🔑) on top of the Query Interface 2017-07-21 09:13:20 +02:00
Gwendal Roué bc5eeb3b3a expr == DatabaseValue.null is converted to expr IS NULL. 2017-07-17 20:19:19 +02:00
Gwendal Roué 111970fda9 Tests for public protocols and open classes
The goal of those tests is to prevent breaking changes as the one that happened in v1.2, where the DatabaseReader protocol was added a new method without any default implementation.
2017-07-13 16:53:01 +02:00
Gwendal Roué 581bc9f27c Support for partial records whose encode(to:) method does not provide values for all table columns 2017-07-13 11:03:23 +02:00
Gwendal Roué cc33b12b0d DatabaseReader.unsafeReentrantRead 2017-07-13 09:11:21 +02:00
Gwendal Roué 380b6676a6 Statement.sql trims white space and semicolon 2017-07-12 08:45:56 +02:00
Gwendal Roué 5f2d6f8e2f Table creation API enhancements 2017-07-01 16:44:33 +02:00
Gwendal Roué bd919e5209 DatabaseAggregate (fixes #236) 2017-07-01 11:39:52 +02:00
Gwendal Roué d12dad2e34 Deprecate TableMapping.primaryKeyRowComparator 2017-06-30 07:47:13 +02:00
Gwendal Roué 9609e2ac4c Database.foreignKeys(on:) 2017-06-20 07:54:19 +02:00
Gwendal Roué 31aea350cb Rename Database.afterCommit(_:) to Database.afterNextTransactionCommit(_:) 2017-06-20 07:54:19 +02:00
Gwendal Roué b43dc1ba37 Less TODO 2017-06-20 07:54:19 +02:00
Gwendal Roué f40a685ac9 Update performance tests for FMDB 2.7.2 2017-06-20 07:54:19 +02:00
Gwendal Roué 7b0659332b Realm 2.8.2 2017-06-20 07:54:19 +02:00
Gwendal Roué 19812cb015 SQLite.swift 0.11.3, FMDB 2.7.2 2017-06-20 07:54:19 +02:00
Gwendal Roué 2f79d5f805 Database.afterCommit(_:) 2017-06-20 07:54:19 +02:00
Gwendal Roué 90a46f6556 Introduce TransactionObservationExtent 2017-06-20 07:54:19 +02:00
Gwendal Roué 0c192fcb57 DatabaseMigrator.migrate(_:upTo:) 2017-06-20 07:54:19 +02:00
Gwendal Roué e24cb1783c Change default transaction kind to deferred (the SQLite default). 2017-06-20 07:54:19 +02:00
Gwendal Roué a913aba018 Replace persistentDictionary with encode(to:) 2017-06-20 07:54:19 +02:00
Gwendal Roué 604cf6b522 Remove QueryInterfaceRequest.contains(_:) 2017-06-20 07:54:19 +02:00
Gwendal Roué b3d731b040 Remove QueryInterfaceRequest.exists() 2017-06-20 07:54:19 +02:00
Gwendal Roué 60e6c7d250 Remove DatabaseCoder 2017-06-20 07:54:19 +02:00
Gwendal Roué 60a23bb280 More Xcode-9 fixes 2017-06-09 06:44:26 +02:00
Gwendal Roué 10e669423f Use the dbValue identifier for variables of type DatabaseValue 2017-06-01 08:35:14 +02:00
Gwendal Roué b5beff5030 Fix SelectStatementTests.testSelectionInfo SPM test 2017-05-28 13:15:41 +02:00
Gwendal Roué d1d1a5da77 Improve SelectionInfo for SQLite 3.19.0 2017-05-28 13:15:41 +02:00
Gwendal Roué 1fb7f9ff5b Disable query tracing inside EncryptionTests.testExportPlainTextDatabaseToEncryptedDatabase (workaround https://github.com/sqlcipher/sqlcipher/issues/216) 2017-05-28 11:40:26 +02:00
Gwendal Roué 7eecb059e6 Disable EncryptionTests.testExportPlainTextDatabaseToEncryptedDatabase until https://github.com/sqlcipher/sqlcipher/issues/216 is fixed 2017-05-28 11:40:26 +02:00
Gwendal Roué 2ef547c461 Fix flaky busy handler tests 2017-05-27 15:04:27 +02:00
Gwendal Roué a34784ca73 TODO: Fix flaky ConcurrencyTests.testReaderInDeferredTransactionDuringDefaultTransaction 2017-05-25 23:02:31 +02:00
Gwendal Roué 9cb8b205c5 Rewrite tests that check that closing a connection does not break unclosed statements (this should fix #216, for good this time!) 2017-05-25 19:25:47 +02:00