From fd7adf7fb3debdd31bf079f473fbc0d82b6914ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 9 Sep 2025 21:35:58 +0200 Subject: [PATCH] SendableMetatype for compiler >= 6.2 --- GRDB/Utils/Utils.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GRDB/Utils/Utils.swift b/GRDB/Utils/Utils.swift index d690b9eec..dd7ce059f 100644 --- a/GRDB/Utils/Utils.swift +++ b/GRDB/Utils/Utils.swift @@ -23,6 +23,14 @@ public func databaseQuestionMarks(count: Int) -> String { repeatElement("?", count: count).joined(separator: ",") } +#if compiler(>=6.2) +/// A synonym for `SendableMetatype` in Swift 6.2, and `Any` otherwise. +public typealias GRDBSendableMetatype = SendableMetatype +#else +/// A synonym for `SendableMetatype` in Swift 6.2, and `Any` otherwise. +public typealias GRDBSendableMetatype = Any +#endif + // MARK: - Internal /// Reserved for GRDB: do not use.