SendableMetatype for compiler >= 6.2

This commit is contained in:
Gwendal Roué committed 2025-09-10 07:12:52 +02:00
1 parent be0f0c6f25
commit fd7adf7fb3
1 file changed
+8
+8
View File
@@ -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.