Collection

extension Collection where Element == SQL

Available where Element == SQL

  • Returns the concatenated SQL literal of this collection of literals, inserting the given SQL separator between each element.

    let components: [SQL] = [
        "UPDATE player",
        "SET name = \(name)",
        "WHERE id = \(id)"
    ]
    let query = components.joined(separator: " ")
    

    Declaration

    Swift

    public func joined(separator: String = "") -> SQL