Commit Graph
2042 Commits
Author SHA1 Message Date
Gwendal Roué fb0866c6fa Rename LockedBox to Mutex
Maybe we'll be able to plug in the standard one eventually: https://forums.swift.org/t/pitch-synchronous-mutual-exclusion-lock/69889
2024-02-18 12:41:34 +01:00
Gwendal Roué fc7ca13c04 Sendable annotations for DAO 2024-02-16 17:43:41 +01:00
Gwendal Roué c76215ba70 Sendable annotations for query interface requests 2024-02-16 08:34:21 +01:00
Gwendal Roué ee444c1468 Sendable annotations for DatabaseDateComponents 2024-02-16 08:34:21 +01:00
Gwendal Roué 3ffaa1929d [BREAKING] NSData and NSString are no longer DatabaseValueConvertible 2024-02-16 08:34:21 +01:00
Gwendal Roué 7d379409f1 Sendable annotations for DatabaseRegionObservation 2024-02-16 08:34:21 +01:00
Gwendal Roué 1fe410de69 Sendable annotations for ValueObservation 2024-02-16 08:34:21 +01:00
Gwendal Roué 81746c75ad Sendable annotations in DatabaseReader and DatabaseWriter
Also, we make sure to always resume UnsafeContinuation with Sendable values. See https://forums.swift.org/t/advice-regarding-sendable-constraints-on-generic-async-apis/69969/3
2024-02-11 16:56:21 +01:00
Gwendal Roué 62e8769be6 DatabaseCollation is Sendable 2024-02-11 16:56:21 +01:00
Gwendal Roué 97719932f5 DatabaseFunction is Sendable 2024-02-11 16:56:21 +01:00
Gwendal Roué 022487d360 Sendable annotations 2024-02-11 16:56:21 +01:00
Gwendal Roué 9b93ef7907 DispatchSpecificKey are nonisolated 2024-02-11 16:56:21 +01:00
Gwendal Roué a3b5001fed Sendable annotations 2024-02-11 16:56:21 +01:00
Gwendal Roué e0cfb97796 The global SQLite error log is nonisolated 2024-02-11 16:56:21 +01:00
Gwendal Roué b0a94d16df Configuration is Sendable 2024-02-11 16:56:21 +01:00
Gwendal Roué 1811a9b64b Remove ill-advised TODO
I wouldn't want to keep an invalid pointer. And C functions accept the optional just fine.
2024-02-11 14:05:35 +01:00
Gwendal Roué 4e1f8962a4 Remove ill-advised TODO
This would force users to force-unwrap their custom `ColumnType(rawValue: "WHATEVER")!`
2024-02-11 14:05:35 +01:00
Gwendal Roué 44cd5ad749 [BREAKING] Bump requirements: Swift 5.10, Xcode 15.3, iOS 12, tvOS 12 2024-02-11 14:05:35 +01:00
Ben Barnett 27a4215424 Add schemaName parameter to foreign key checking functions 2023-12-08 18:22:49 +00:00
Ben Barnett 65167ec7da Add schemaName parameter to table/view/triggerExists() 2023-12-08 18:22:49 +00:00
Ben Barnett 73489fc0e7 Add schemaName parameter to indexes(on:) 2023-12-08 18:22:49 +00:00
Ben Barnett 1aca8efa65 Add schemaName parameter to foreignKeys(on:) 2023-12-08 18:22:49 +00:00
Ben Barnett a22bf83ae8 Split duplicate nested conditions into separate function 2023-12-07 18:32:34 +00:00
Ben Barnett f00a974211 Add schemaName parameter to columns(in:) 2023-12-06 20:49:48 +00:00
Ben Barnett ac475cc158 Add schemaName parameter to primaryKey(_:) 2023-12-06 20:32:17 +00:00
Gwendal Roué e3cf966c81 Documentation organization 2023-12-01 08:02:32 +01:00
Gwendal Roué c5203f078d Make Database.readOnly public 2023-11-30 07:56:21 +01:00
Gwendal Roué e29c52d7e5 Update obsolete documentation of stopObservingDatabaseChangesUntilNextTransaction 2023-11-27 10:00:41 +01:00
Gwendal Roué 93462cfd2c Documentation 2023-11-26 10:33:00 +01:00
Gwendal Roué d8760253ff Add missing DocC reference 2023-11-25 17:10:40 +01:00
Gwendal Roué f1a8c5ac92 Wording 2023-11-25 16:49:37 +01:00
Gwendal Roué 079c0c7f26 The unit of change notification is the event kind, not the region 2023-11-25 16:44:18 +01:00
Gwendal Roué bced461c4f Fix failing test for DatabaseRegionObservation and Database.notifyChanges(in:) 2023-11-25 15:32:35 +01:00
Gwendal Roué 3e52e265ce Fix failing test for stopObservingDatabaseChangesUntilNextTransaction() from databaseDidChange() 2023-11-25 15:32:35 +01:00
Gwendal Roué 8afd986790 Fix failing tests for Database.notifyChanges(in:) and master tables 2023-11-25 15:32:35 +01:00
Gwendal Roué 918afbd33e Fix failing tests for Database.notifyChanges(in:) and regular tables 2023-11-25 14:39:13 +01:00
Gwendal Roué b5cb8fadf0 Failing tests for Database.notifyChanges(in:) 2023-11-25 14:39:13 +01:00
Gwendal Roué 1a16bdeac8 TransactionObserver.databaseDidChange() 2023-11-25 13:30:23 +01:00
Gwendal Roué f0fe5ff017 TODO GRDB7 2023-11-02 14:08:15 +01:00
Gwendal Roué 2603b6ea03 Support for ORDER BY and FILTER in aggregate functions 2023-11-02 14:03:52 +01:00
Gwendal Roué 38bb8d3505 Backport temporary copies from GRDBSnapshotTesting 2023-10-28 18:38:15 +02:00
Gwendal Roué ba320a08e3 Make dumpTables able to print views 2023-10-28 15:46:31 +02:00
Gwendal Roué 8fa434272e Make all read closures explicit in the documentation
The short form dbQueue.read(fetch) can confuse the reader.
2023-10-22 07:59:08 +02:00
Gwendal Roué dc1f9450c0 Expose DatabaseValue.init(sqliteStatement:index:)
This helps users implement custom dump formats
2023-10-12 09:17:50 +02:00
Gwendal Roué 69ae4c4e96 Dump 2023-10-12 09:17:50 +02:00
Gwendal Roué f4ac0ab119 Make it possible to observe the supplementary fetches 2023-10-08 20:41:05 +02:00
Gwendal Roué c7047c4b33 Trim SQL in DatabaseError descriptoin 2023-10-08 20:07:59 +02:00
Gwendal Roué e22bf8fe0a DocC organization 2023-10-08 20:05:22 +02:00
Gwendal Roué 97e6f88b31 Add new .jsonText column type 2023-10-04 19:55:12 +02:00
Gwendal Roué 8cc52983b7 Introduce SQLFunctionFlags 2023-10-01 15:39:47 +02:00