Commit Graph
696 Commits
Author SHA1 Message Date
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é 519d4470e3 Drop Configuration.fileAttributes 2017-01-20 08:22:46 +01:00
Gwendal Roué dbe4965438 DatabaseEventKind.tableName 2017-01-19 10:12:30 +01:00
Gwendal Roué d866bc9044 Row adopts Hashable 2017-01-04 06:52:57 +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é c36be55c2f FetchedRecordsController error handling WIP 2016-12-16 09:09:50 +01:00
Gwendal Roué 5355555568 Typo 2016-12-16 07:42:34 +01:00
Gwendal Roué 3e01bca690 Documentation 2016-12-16 05:25:18 +01:00
Gwendal Roué 44cefc89e4 Documentation for StatementArguments.append(contentsOf:) and operators +, &+, += 2016-12-16 05:02:27 +01:00
Gwendal Roué b737321cbd Rows expressed as dictionary literals now preserve column ordering, and allow duplicated column names 2016-12-16 05:01:07 +01:00
Gwendal Roué d4c7b41897 StatementArguments.append(contentsOf:) returns the updated values; operators +, &+, += 2016-12-15 21:39:28 +01:00
Gwendal Roué 0ecf6b5aa1 Drop StatementArguments + StatementArguments (because it allows [1, 2] + ["foo": 1] to compile) 2016-12-15 17:50:56 +01:00
Gwendal Roué cb51c03992 StatementArguments + StatementArguments 2016-12-15 17:47:01 +01:00
Gwendal Roué 5dca5fe3cb StatementArguments.append(contentsOf:) refuses to update named arguments 2016-12-15 17:38:33 +01:00
Gwendal Roué a7acd50159 StatementArguments.append(contentsOf:) 2016-12-15 17:26:23 +01:00
Gwendal Roué cc89c994c8 Remove useless self. 2016-12-15 08:13:33 +01:00
Gwendal Roué fc2689e207 Fix Pool.get when an error prevents a pool item from being created (counting semaphore wasn't signaled). This fixes DatabasePool.read when read connection can not be established. Tests. 2016-12-15 08:09:17 +01:00
Gwendal Roué b32984b1d6 Document improved error handling of DatabasePool.readFromCurrentState() and support for raw BEGIN/COMMIT/ROLLBACK transaction statements 2016-12-15 05:11:25 +01:00
Gwendal Roué 7e2fd9e690 DatabasePool.readFromCurrentState throws if it can't acquire an isolated database access 2016-12-15 04:57:31 +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é e44bd4684b Fix SerializedDatabase crash when database is deallocated in its own queue 2016-12-15 03:57:46 +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é 2190e449c1 Documentation fix 2016-12-13 09:13:46 +01:00
Gwendal Roué a68ed01003 Documentation 2016-12-12 08:38:03 +01:00
Gwendal Roué 18664b7e7e Documentation 2016-12-12 08:13:31 +01:00
Gwendal Roué cb81e50f71 Request.adapted(_:) 2016-12-11 21:07:52 +01:00
Gwendal Roué 66daa2eb29 RangeRowAdapter(CountableClosedRange<Int>) 2016-12-09 09:54:25 +01:00
Gwendal Roué f6513932b0 Documentation 2016-12-09 08:48:26 +01:00
Gwendal Roué 1d6671c11a Introduce RangeRowAdapter 2016-12-08 19:07:11 +01:00
Gwendal Roué 2f2dc86c9d Documentation 2016-12-08 17:20:32 +01:00
Gwendal Roué bfb2ff9390 Documentation 2016-12-08 16:02:35 +01:00
Gwendal Roué cbd14c4b8c Documentation 2016-12-08 14:03:22 +01:00
Gwendal Roué cb08660a78 Rename FetchRequest -> Request 2016-12-08 13:56:05 +01:00
Gwendal Roué cc1df37725 Documentation 2016-12-08 08:50:00 +01:00
Gwendal Roué 07aecd3a95 Fix failing tests of TypedFetchRequest 2016-12-08 08:43:58 +01:00
Gwendal Roué 9e634196bf Public SQLFetchRequest initializer 2016-12-08 07:48:28 +01:00
Gwendal Roué bab56b4c9d Documentation 2016-12-08 06:46:39 +01:00