mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
EncodableRecord is GRDBSendableMetatype
This allows us to apply the encoding strategies for Data, Date, UUID when we know we need it, i.e. when we know the primary key, and this happens when we access the database - in a nonisolated fashion.
This commit is contained in:
1 parent
f88c7202cd
commit
32ed290a1b
1 file changed
+1
-1
@@ -39,7 +39,7 @@ import Foundation // For JSONEncoder
|
||||
/// - ``databaseChanges(from:)``
|
||||
/// - ``databaseChanges(modify:)``
|
||||
/// - ``databaseEquals(_:)``
|
||||
public protocol EncodableRecord {
|
||||
public protocol EncodableRecord: GRDBSendableMetatype {
|
||||
/// Encodes the record into the provided persistence container.
|
||||
///
|
||||
/// In your implementation of this method, store in the `container` argument
|
||||
|
||||
Reference in new issue
Block a user