mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
RowAdapter is Sendable
This commit is contained in:
1 parent
961f6c4176
commit
7aff0b97c7
2 files changed
+4
-4
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
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
- [X] GRDB7: Sendable: DatabaseFunction (6e691fe7)
|
||||
- [X] GRDB7: Sendable: DatabaseMigrator (22114ad4)
|
||||
- [X] GRDB7: Not Sendable: FilterCursor (b26e9709)
|
||||
- [ ] GRDB7: Sendable: RowAdapter (d138af26)
|
||||
- [X] GRDB7: Sendable: RowAdapter (d138af26)
|
||||
- [ ] GRDB7: Sendable: ValueObservationScheduler (8429eb68)
|
||||
- [X] GRDB7: Sendable: DatabaseCollation (4d9d67dd)
|
||||
- [ ] GRDB7: Sendable: LogErrorFunction (f362518d)
|
||||
|
||||
Reference in new issue
Block a user