SQLGenerationContext no longer needs to be mutated

This commit is contained in:
Gwendal Roué committed 2020-04-29 21:59:04 +02:00
1 parent e47a584c3e
commit a15233eff1
19 files changed
+140 -141

No files matched your search

@@ -51,10 +51,9 @@ public struct SQLGenerationContext {
qualifierNeeded: aliases.count > 1)
}
// TODO: make it not mutating
/// Returns whether arguments could be appended.
/// May be false for SQLGenerationContext.rawSQLContext
mutating func append(arguments: StatementArguments) -> Bool {
func append(arguments: StatementArguments) -> Bool {
argumentsSink.append(arguments: arguments)
}