Skip to content

Commit 9619f0f

Browse files
authored
Fix SendableMetatype handling (#7)
The `SendableMetatype` thing I did in the previous PR wasn't quite right. This fixes it.
1 parent 884d856 commit 9619f0f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
import FluentKit
22

33
#if compiler(>=6.2)
4-
@_marker public protocol _SQLKitExtrasSendableMetatype: SendableMetatype {}
4+
public typealias _SQLKitExtrasSendableMetatype = SendableMetatype
55
#else
6-
@_marker public protocol _SQLKitExtrasSendableMetatype {}
6+
public typealias _SQLKitExtrasSendableMetatype = Any
77
#endif
88

9-
extension FluentKit.FieldProperty: _SQLKitExtrasSendableMetatype {}
9+
extension FluentKit.BooleanProperty: _SQLKitExtrasSendableMetatype {}
10+
extension FluentKit.OptionalBooleanProperty: _SQLKitExtrasSendableMetatype {}
11+
12+
extension FlatGroupProperty: _SQLKitExtrasSendableMetatype {}
13+
extension OptionalPointerProperty: _SQLKitExtrasSendableMetatype {}
14+
extension OptionalReferenceProperty: _SQLKitExtrasSendableMetatype {}
15+
extension PointerProperty: _SQLKitExtrasSendableMetatype {}
16+
extension ReferencesProperty: _SQLKitExtrasSendableMetatype {}
17+
extension RequiredTimestampProperty: _SQLKitExtrasSendableMetatype {}
18+

0 commit comments

Comments
 (0)