RowAdapter is Sendable

This commit is contained in:
Gwendal Roué committed 2024-07-27 16:37:32 +02:00
1 parent b26e9709e7
commit d138af2637
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -318,7 +318,7 @@ extension Statement: _RowLayout {
/// - ``RenameColumnAdapter`` /// - ``RenameColumnAdapter``
/// - ``ScopeAdapter`` /// - ``ScopeAdapter``
/// - ``SuffixRowAdapter`` /// - ``SuffixRowAdapter``
public protocol RowAdapter { public protocol RowAdapter: Sendable {
/// You never call this method directly. It is called for you whenever an /// You never call this method directly. It is called for you whenever an
/// adapter has to be applied. /// adapter has to be applied.
/// ///
@@ -656,11 +656,11 @@ struct ChainedAdapter: RowAdapter {
/// print(Array(adaptedRow.columnNames)) /// print(Array(adaptedRow.columnNames))
/// ``` /// ```
public struct RenameColumnAdapter: RowAdapter { public struct RenameColumnAdapter: RowAdapter {
let transform: (String) -> String let transform: @Sendable (String) -> String
/// Creates a `RenameColumnAdapter` adapter that renames columns according to the /// Creates a `RenameColumnAdapter` adapter that renames columns according to the
/// provided transform function. /// provided transform function.
public init(_ transform: @escaping (String) -> String) { public init(_ transform: @escaping @Sendable (String) -> String) {
self.transform = transform self.transform = transform
} }
+3 -3
View File
@@ -147,12 +147,12 @@
- [ ] persistencesuccess - [ ] persistencesuccess
- [ ] queryinterfacerequest - [ ] queryinterfacerequest
- [ ] record - [ ] record
- [ ] renamecolumnadapter - [X] renamecolumnadapter
- [ ] row/prefetchedrowsview - [ ] row/prefetchedrowsview
- [ ] row/scopestreeview - [ ] row/scopestreeview
- [ ] row/scopesview - [ ] row/scopesview
- [ ] rowadapter - [X] rowadapter
- [ ] scopeadapter - [X] scopeadapter
- [ ] sharedvalueobservation - [ ] sharedvalueobservation
- [ ] sql - [ ] sql
- [ ] sqlexpressible - [ ] sqlexpressible