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
@@ -41,7 +41,7 @@ struct SQLExpressionsArray: SQLCollection {
let expressions: [SQLExpression]
init<S: Sequence>(_ expressions: S) where S.Iterator.Element: SQLExpressible {
self.expressions = expressions.map { $0.sqlExpression }
self.expressions = expressions.map(\.sqlExpression)
}
func collectionSQL(_ context: inout SQLGenerationContext) -> String {