mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
SQLRequestExpressible is a sub protocol of SQLSpecificExpressible
This commit is contained in:
1 parent
69641ff7d6
commit
be249bc697
5 files changed
+23
-103
No files matched your search
@@ -415,7 +415,7 @@ extension QueryInterfaceRequest: SQLCollection {
|
||||
}
|
||||
|
||||
// Support for `request == expression`
|
||||
extension QueryInterfaceRequest: SQLRequestExpressible {
|
||||
extension QueryInterfaceRequest: SQLSpecificExpressible {
|
||||
private struct Expression: SQLExpression {
|
||||
let generator: SQLQueryGenerator
|
||||
|
||||
@@ -437,6 +437,14 @@ extension QueryInterfaceRequest: SQLRequestExpressible {
|
||||
}
|
||||
}
|
||||
|
||||
// Support for `SQLLiteral("SELECT ... IN (\(request))")`
|
||||
extension QueryInterfaceRequest: SQLRequestExpressible {
|
||||
/// :nodoc
|
||||
public func requestSQL(_ context: SQLGenerationContext) throws -> String {
|
||||
try SQLQueryGenerator(query: query).sql(context)
|
||||
}
|
||||
}
|
||||
|
||||
extension QueryInterfaceRequest: TableRequest {
|
||||
/// :nodoc:
|
||||
public var databaseTableName: String {
|
||||
|
||||
Reference in new issue
Block a user