mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
RowAdapter is Sendable
This commit is contained in:
1 parent
b26e9709e7
commit
d138af2637
2 files changed
+6
-6
No files matched your search
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user