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