mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
SE-0249: Key Path Expressions as Functions
This commit is contained in:
1 parent
a31984724e
commit
7865b0a2ee
40 files changed
+160
-160
No files matched your search
@@ -81,7 +81,7 @@ extension SQLQuery: OrderedRequest {
|
||||
|
||||
extension SQLQuery: AggregatingRequest {
|
||||
func group(_ expressions: @escaping (Database) throws -> [SQLExpressible]) -> SQLQuery {
|
||||
return with(\.groupPromise, DatabasePromise { db in try expressions(db).map { $0.sqlExpression } })
|
||||
return with(\.groupPromise, DatabasePromise { db in try expressions(db).map(\.sqlExpression) })
|
||||
}
|
||||
|
||||
func having(_ predicate: SQLExpressible) -> SQLQuery {
|
||||
|
||||
Reference in new issue
Block a user