Skip to content

Commit 32ed290

Browse files
committed
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.
1 parent f88c720 commit 32ed290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GRDB/Record/EncodableRecord.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import Foundation // For JSONEncoder
3939
/// - ``databaseChanges(from:)``
4040
/// - ``databaseChanges(modify:)``
4141
/// - ``databaseEquals(_:)``
42-
public protocol EncodableRecord {
42+
public protocol EncodableRecord: GRDBSendableMetatype {
4343
/// Encodes the record into the provided persistence container.
4444
///
4545
/// In your implementation of this method, store in the `container` argument

0 commit comments

Comments
 (0)