SE-0249: Key Path Expressions as Functions

This commit is contained in:
Gwendal Roué committed 2020-03-08 19:58:51 +01:00
1 parent a31984724e
commit 7865b0a2ee
40 files changed
+160 -160

No files matched your search

+1 -1
View File
@@ -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 {