Collection
extension Collection where Element == SQLLiteral
-
Returns the concatenated SQLLiteral of this collection of literals, inserting the given separator between each element.
let components: [SQLLiteral] = [ "UPDATE player", "SET name = \(name)", "WHERE id = \(id)" ] let query = components.joined(separator: " ")
Declaration
Swift
public func joined(separator: String = "") -> SQLLiteral