mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +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``
|
||||
/// - ``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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user