File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Sources/StructuredQueriesCore
Tests/StructuredQueriesTests Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,12 @@ extension Optional: Table where Wrapped: Table {
100100 )
101101 }
102102
103- public subscript< Q: QueryExpression > (
104- dynamicMember keyPath: KeyPath < Wrapped . TableColumns , Q >
105- ) -> Q ? {
106- Wrapped . columns [ keyPath: keyPath]
103+ public subscript< QueryValue> (
104+ dynamicMember keyPath: KeyPath < Wrapped . TableColumns , some QueryExpression < QueryValue > >
105+ ) -> some QueryExpression < QueryValue ? > {
106+ let tmp = Wrapped . columns [ keyPath: keyPath]
107+ let tmp1 : Optional < some QueryExpression < QueryValue > > = . some( tmp)
108+ return tmp1
107109 }
108110 }
109111}
Original file line number Diff line number Diff line change @@ -982,8 +982,3 @@ extension Reminder.TableColumns {
982982 self . priority == Priority . high
983983 }
984984}
985- //extension Reminder?.TableColumns {
986- // var isHighPriority: some QueryExpression<Bool> {
987- // #sql("\(self.priority) = \(Priority.high)")
988- // }
989- //}
You can’t perform that action at this time.
0 commit comments