mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Close FetchRequest, make it visitable
This commit is contained in:
1 parent
31e8d926a8
commit
002287ca28
27 files changed
+512
-959
No files matched your search
@@ -124,7 +124,17 @@ private struct SQLSelectableCountGenerator: _SQLSelectableVisitor {
|
||||
resultSQL = try expr.expressionSQL(context, wrappedInParenthesis: false)
|
||||
}
|
||||
|
||||
mutating func visit<Request: SQLRequestProtocol>(_ expr: Request) throws {
|
||||
resultSQL = try expr.expressionSQL(context, wrappedInParenthesis: false)
|
||||
// MARK: - _FetchRequestVisitor
|
||||
|
||||
mutating func visit<Base: FetchRequest>(_ request: AdaptedFetchRequest<Base>) throws {
|
||||
resultSQL = try request.expressionSQL(context, wrappedInParenthesis: false)
|
||||
}
|
||||
|
||||
mutating func visit<RowDecoder>(_ request: QueryInterfaceRequest<RowDecoder>) throws {
|
||||
resultSQL = try request.expressionSQL(context, wrappedInParenthesis: false)
|
||||
}
|
||||
|
||||
mutating func visit<RowDecoder>(_ request: SQLRequest<RowDecoder>) throws {
|
||||
resultSQL = try request.expressionSQL(context, wrappedInParenthesis: false)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user