Commit Graph
10789 Commits
Author SHA1 Message Date
Gwendal Roué 66e65db74e [BREAKING] Row refactor 2024-04-01 18:17:28 +02:00
Gwendal Roué 580f6967d1 SQL is Sendable 2024-03-31 18:05:32 +02:00
Gwendal Roué adc88820b8 SQLRelation is Sendable 2024-03-31 18:05:32 +02:00
Gwendal Roué d3f8013d68 Make TableAlias Sendable even if it is not yet. 2024-03-31 18:05:32 +02:00
Gwendal Roué 36e67c40b4 DatabasePromise is Sendable 2024-03-31 18:05:32 +02:00
Gwendal Roué 0078d68d51 FTS5 tokenizers don't need to be Sendable 2024-03-31 18:05:32 +02:00
Gwendal Roué 84876de3c6 Fix a concurrency warning 2024-03-31 18:05:32 +02:00
Gwendal Roué 6e6ac52bfc writePublisher(updates:thenRead:) requires a Sendable Value
... But I don't know if region-based isolation and SE-0430 can relax this constraint or not.
2024-03-31 18:05:32 +02:00
Gwendal Roué 99a178bffd Fix concurrency warning on SQLITE_TRANSIENT 2024-03-31 18:05:32 +02:00
Gwendal Roué 10e6b8c703 ValueObservation.handleEvents accept Sendable closures 2024-03-31 18:05:32 +02:00
Gwendal Roué 6319f3aeb2 ValueObservationScheduler async access requires a Sendable closure 2024-03-31 18:05:32 +02:00
Gwendal Roué c4a24fa578 SerializedDatabase async access requires a Sendable closure 2024-03-31 18:05:32 +02:00
Gwendal Roué 6539c1d8bf WALSnapshotTransaction is Sendable 2024-03-31 10:11:03 +02:00
Gwendal Roué 6b21a21e1f OnDemandFuture fulfill is Sendable 2024-03-31 10:11:03 +02:00
Gwendal Roué fc5ec15bc6 Pool is Sendable 2024-03-30 20:22:16 +01:00
Gwendal Roué b3a7e9f233 ReadWriteBox is Sendable 2024-03-30 20:12:23 +01:00
Gwendal Roué a915ba52c7 Fix concurrency warnings with DispatchSpecificKey 2024-03-30 20:05:41 +01:00
Gwendal Roué a6aa61e789 LogErrorFunction is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué cf3f2fcf3a DatabaseCollation is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué 9b18b29a3c ValueObservationScheduler is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué c676931d76 Record can't be made Sendable
... so that subclasses do not have to be sendable
2024-03-30 19:45:28 +01:00
Gwendal Roué ba1e67b7d3 RowAdapter is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué 0cdb2181b1 FilterCursor can't be made Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué f25d83ed7a Database publishers can't be made Sendable
... because they wrap base publishers that are not :-/
2024-03-30 19:45:28 +01:00
Gwendal Roué f7fdc25061 DatabaseMigrator is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué 8a005e17ce DatabaseFunction is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué fe474ab95f [BREAKING] Remove DatabaseFuture and concurrentRead
That's one less DispatchSemaphore. We don't need this method anymore.
2024-03-30 19:45:28 +01:00
Gwendal Roué 62ba1c8551 Coding strategies are Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué 9ae5726fe5 Configuration is Sendable 2024-03-30 19:45:28 +01:00
Gwendal Roué 5bfeeb9952 TransactionClock is Sendable 2024-03-30 17:44:24 +01:00
Gwendal Roué 9a4e65860f BusyCallback and BusyMode are Sendable 2024-03-30 17:44:24 +01:00
Gwendal Roué ec95c61ff3 Tests need a Mutex too 2024-03-30 17:44:24 +01:00
Gwendal Roué 9ad5d89d89 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-03-30 17:44:24 +01:00
Gwendal Roué c23036d168 DatabaseCancellable is Sendable 2024-03-30 17:44:24 +01:00
Gwendal Roué 974597b24e [BREAKING] Remove Configuration.defaultTransactionKind
GRDB know defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-03-30 17:44:24 +01:00
Gwendal Roué 5289f5d93d [BREAKING] Bump requirements: watchOS 7
Rationale: https://github.com/groue/GRDB.swift/issues/1472#issuecomment-1960696836
2024-03-30 13:39:12 +01:00
Gwendal Roué f6ce2e82f9 [BREAKING] Stop exporting SQLite 2024-03-30 13:27:44 +01:00
Gwendal Roué 3b55e6a5d0 TODO 2024-03-27 17:52:26 +01:00
Gwendal Roué 233078979e [BREAKING] Remove AsyncValueObservation does not need any scheduler 2024-03-27 17:52:26 +01:00
Gwendal Roué cac01e270a [BREAKING] insertAndFetch, saveAndFetch, and updateAndFetch no longer return optionals.
Those optionals were just an annoyance. Now, nil results are replaced with `RecordError.recordNotFound`. Such an error is only expected with the IGNORE conflict policy.
2024-03-27 17:42:27 +01:00
Gwendal Roué c14b194637 Remove ill-advised TODO
This would force users to force-unwrap their custom `ColumnType(rawValue: "WHATEVER")!`
2024-03-27 17:39:10 +01:00
Gwendal Roué 57ac5ddbb3 [BREAKING] Bump requirements: Swift 5.10, Xcode 15.3, iOS 12, tvOS 12 2024-03-27 17:38:54 +01:00
Gwendal Roué 77b85bed25 Merge branch 'development' v6.26.0 2024-03-23 14:06:22 +01:00
Gwendal Roué bb8323b91d v6.26.0 2024-03-23 14:06:05 +01:00
Gwendal Roué d804b5ed9c Bump performance dependencies 2024-03-23 14:06:05 +01:00
Gwendal Roué 2af60cb324 CHANGELOG 2024-03-23 11:46:44 +01:00
Gwendal Roué 0434567f30 Merge pull request #1515 from groue/dev/cast
Support for the CAST SQLite function
2024-03-23 11:42:56 +01:00
Gwendal Roué 155a16bef8 CHANGELOG 2024-03-23 10:52:28 +01:00
Gwendal Roué 2ad1f37d2b Documentation for cast function 2024-03-23 10:48:20 +01:00
Gwendal Roué 32642d566b Test cast function 2024-03-23 10:47:57 +01:00