Skip to content

Commit 9710bc1

Browse files
committed
Swift 6.2: Fix Sendable Metatype Warnings
1 parent 79ac5f5 commit 9710bc1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/StructuredQueriesCore/Table.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
#if swift(>=6.2)
2+
public typealias _SendableMetatype = SendableMetatype
3+
#else
4+
public protocol _SendableMetatype {}
5+
#endif
6+
17
/// A type representing a database table.
28
///
39
/// Don't conform to this protocol directly. Instead, use the `@Table` and `@Column` macros to
410
/// generate a conformance.
511
@dynamicMemberLookup
6-
public protocol Table: QueryRepresentable where TableColumns.QueryValue == Self {
12+
public protocol Table: QueryRepresentable, _SendableMetatype where TableColumns.QueryValue == Self {
713
/// A type that describes this table's columns.
814
associatedtype TableColumns: TableDefinition
915

0 commit comments

Comments
 (0)