Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/StructuredQueriesCore/Never.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ extension Never: Table {

private struct NotDecodable: Error {}
}

extension Never: _Selection {}
2 changes: 2 additions & 0 deletions Sources/StructuredQueriesCore/Optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ extension Optional: Table, PartialSelectStatement, Statement where Wrapped: Tabl
public typealias Selection = Wrapped.Selection?
}

extension Optional: _Selection where Wrapped: _Selection {}

extension Optional: PrimaryKeyedTable where Wrapped: PrimaryKeyedTable {
public typealias Draft = Wrapped.Draft?
}
Expand Down
2 changes: 2 additions & 0 deletions Sources/StructuredQueriesCore/TableAlias.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ public struct TableAlias<
}
}

extension TableAlias: _Selection where Base: _Selection {}

extension TableAlias: PrimaryKeyedTable where Base: PrimaryKeyedTable {
public typealias Draft = TableAlias<Base.Draft, Name>
}
Expand Down