Collection

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

    For example:

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

    Note

    The separator is a raw SQL string, not an SQL literal that supports SQL Interpolation.