Skip to content

Commit d4a3a87

Browse files
committed
Conditionally conform optional to selection
1 parent dcf489f commit d4a3a87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/StructuredQueriesCore/Optional.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ extension Optional: Table, PartialSelectStatement, Statement where Wrapped: Tabl
183183
public typealias Selection = Wrapped.Selection?
184184
}
185185

186+
extension Optional: _Selection where Wrapped: _Selection {}
187+
186188
extension Optional: PrimaryKeyedTable where Wrapped: PrimaryKeyedTable {
187189
public typealias Draft = Wrapped.Draft?
188190
}

0 commit comments

Comments
 (0)