From 32ed290a1b048352da42b27848c620a3bc0bc296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 9 Sep 2025 22:10:21 +0200 Subject: [PATCH] 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. --- GRDB/Record/EncodableRecord.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GRDB/Record/EncodableRecord.swift b/GRDB/Record/EncodableRecord.swift index 27f995370..98261bc94 100644 --- a/GRDB/Record/EncodableRecord.swift +++ b/GRDB/Record/EncodableRecord.swift @@ -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