mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Swiftlint + whitespace
This commit is contained in:
1 parent
b3215cc471
commit
df6bb8761c
110 files changed
+3257
-1572
No files matched your search
@@ -37,15 +37,17 @@ extension SQLCollection {
|
||||
/// SQLExpressionsArray wraps an array of expressions
|
||||
///
|
||||
/// SQLExpressionsArray([1, 2, 3])
|
||||
struct SQLExpressionsArray : SQLCollection {
|
||||
struct SQLExpressionsArray: SQLCollection {
|
||||
let expressions: [SQLExpression]
|
||||
|
||||
init<S: Sequence>(_ expressions: S) where S.Iterator.Element : SQLExpressible {
|
||||
init<S: Sequence>(_ expressions: S) where S.Iterator.Element: SQLExpressible {
|
||||
self.expressions = expressions.map { $0.sqlExpression }
|
||||
}
|
||||
|
||||
func collectionSQL(_ context: inout SQLGenerationContext) -> String {
|
||||
return (expressions.map { $0.expressionSQL(&context, wrappedInParenthesis: false) } as [String]).joined(separator: ", ")
|
||||
return expressions
|
||||
.map { $0.expressionSQL(&context, wrappedInParenthesis: false) }
|
||||
.joined(separator: ", ")
|
||||
}
|
||||
|
||||
func contains(_ value: SQLExpressible) -> SQLExpression {
|
||||
|
||||
Reference in new issue
Block a user