Commit Graph
289 Commits
Author SHA1 Message Date
Gwendal Roué b815ad7a8c Apply SQLCipher advice from https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688 2017-03-26 13:53:39 +02:00
Gwendal Roué 78b7fc6169 Workaround PRAGMA table_info bug: check against SQLite version instead of build options 2017-03-26 13:32:01 +02:00
Gwendal Roué 1b44683cfe #171: cleanup 2017-03-02 08:21:29 +01:00
Gwendal Roué 023fa8afc9 #171: Missing upgrades to the new ResultCode APIs 2017-03-02 07:57:02 +01:00
Gwendal Roué b873162a6f #171: Preserve some extended result code that were lost 2017-03-01 14:19:48 +01:00
Gwendal Roué fc18b15106 #171: Apply @hartbit's suggestion of having two DatabaseError properties: resultCode and extendedResultCode 2017-03-01 09:05:06 +01:00
Gwendal Roué e4a346995b #171: rename ResultCode.code into ResultCode.resultCode (@hartbit's suggestion) 2017-02-26 17:24:44 +01:00
Gwendal Roué f0d1f2387d #171: always use extended result codes 2017-02-26 15:49:14 +01:00
Gwendal Roué 7eb592df79 #171: introduce ResultCode 2017-02-26 15:36:21 +01:00
Gwendal Roué 1e0e40912b GRDBiOS tests on iOS8.1 2017-02-01 13:28:08 +01:00
Gwendal Roué 4dfd672c04 Compound unique keys: preserve index ordering in generated SQL queries 2017-01-22 16:51:02 +01:00
Gwendal Roué d8b64aa2f4 Use sqlite3_close_v2 in GRDBCipher and GRDBCustomSQLite 2017-01-22 16:04:10 +01:00
Gwendal Roué f0758e2a6c Darn 2017-01-20 14:02:27 +01:00
Gwendal Roué dbe4965438 DatabaseEventKind.tableName 2017-01-19 10:12:30 +01:00
Gwendal Roué 0f34ee7d16 Revert "DatabaseError.code is now Database.ResultCode"
This reverts commit 968942f128.
2016-12-29 13:32:29 +01:00
Gwendal Roué 968942f128 DatabaseError.code is now Database.ResultCode 2016-12-28 11:55:47 +01:00
Gwendal Roué 484b440816 Database.cachedSelectStatement() no longer returns a statement that can not be reused because it has already failed. 2016-12-21 18:59:23 +01:00
Gwendal Roué 4670026c92 Fix #157 for virtual tables 2016-12-21 06:06:12 +01:00
Gwendal Roué 302b9c2ac5 Fix #156 and #157 2016-12-21 05:44:19 +01:00
Gwendal Roué 000f1d02c3 Fix #156? 2016-12-20 19:17:12 +01:00
Gwendal Roué e8a229103a Fix #156 2016-12-20 06:01:28 +01:00
Gwendal Roué a96dac8205 Now that we support free BEGIN/COMMIT transaction statements, DatabaesPool.readFromCurrentState will be able to handle read errors 2016-12-15 04:00:00 +01:00
Gwendal Roué 115158a70e Cleanup 2016-12-14 20:19:10 +01:00
Gwendal Roué 63577feca4 Documentation 2016-12-14 18:49:11 +01:00
Gwendal Roué 567e6f1d82 TODO 2016-12-14 12:55:22 +01:00
Gwendal Roué 2b9b8ce536 Cleanup 2016-12-14 12:53:11 +01:00
Gwendal Roué a0f4cb9271 Fix failing tests for TransactionObserver 2016-12-14 12:49:33 +01:00
Gwendal Roué 46f24c582c Fix failing tests for Database.isInsideTransaction 2016-12-14 08:59:57 +01:00
Gwendal Roué a0d9b9fbe8 Support for free BEGIN/COMMIT/ROLLBACK statements 2016-12-14 08:07:42 +01:00
Gwendal Roué 8c440961c5 Database.columnCount(in:) 2016-12-07 10:10:59 +01:00
Gwendal Roué bf76567fdf Remove useless code 2016-12-01 10:43:10 +01:00
Gwendal Roué 6bcab179d1 Classify all try! and fatalError into TODO, Programmer Error, or GRDB bug that needs to be fixed. 2016-11-30 08:56:45 +01:00
Gwendal Roué 972789dba3 Replace Array(Type.fetchCursor()) with Type.fetchAll() 2016-11-29 19:02:58 +01:00
Gwendal Roué a8e266377c Documentation 2016-11-29 12:02:29 +01:00
Gwendal Roué ec2017ff72 Cursor.enumerated, filter, flatMap, map now return cursors. Cursor.lazy returns a lazy sequence. Introduce AnyCursor. Force Cursor types to be classes. 2016-11-28 20:34:53 +01:00
Gwendal Roué 829eb7d3a2 SelectStatement.SelectionInfo cleanup 2016-11-27 15:12:08 +01:00
Gwendal Roué ac6c7f6a35 #147: fetchAll() and fetchOne() can now throw database errors. 2016-11-26 22:38:40 +01:00
Gwendal Roué af6e31dcdf #147: The fetch method have been removed, along with DatabaseSequence and DatabaseIterator. 2016-11-26 21:14:10 +01:00
Gwendal Roué c80f0d317a #147: Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor. 2016-11-26 09:13:39 +01:00
Gwendal Roué b31356aada #147: Database.tableExists(_:) and Database.indexes(on:) can now throw database errors 2016-11-26 08:28:32 +01:00
Gwendal Roué 588b9737bf Revert "Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains)"
This reverts commit 049e9f1a55.
2016-11-15 18:38:46 +01:00
Gwendal Roué 049e9f1a55 Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains) 2016-11-10 09:11:02 +01:00
Gwendal Roué 6200f5fb62 Fix Xcode 8.1 warning 2016-11-10 06:55:24 +01:00
Gwendal Roué cc27c19c66 FIXME: sqlite3_rekey is discouraged. 2016-11-08 19:37:28 +01:00
Gwendal Roué 21c41fb145 availability cleanup 2016-11-05 14:37:36 +01:00
Gwendal Roué 915bc6c7cd Less TODO 2016-10-08 11:36:22 +02:00
Gwendal Roué 2d6abc088f TableMapping.selectsRowID + passing tests for FTS3Record 2016-10-07 19:17:40 +02:00
Gwendal Roué 1244b6b283 Move == operators inside their adopting type 2016-09-30 06:00:50 +02:00
Gwendal Roué 5ba06a74a0 Remove support for text encodings 2016-09-28 07:14:22 +02:00
Gwendal Roué 5a572b25a0 Refactor the query interface types to enhance extensibility 2016-09-27 23:11:21 +02:00