UpdateStatement

public final class UpdateStatement : Statement

A subclass of Statement that executes SQL queries.

You create UpdateStatement with the Database.makeUpdateStatement() method:

try dbQueue.inTransaction { db in
    let statement = try db.makeUpdateStatement(sql: "INSERT INTO player (name) VALUES (?)")
    try statement.execute(arguments: ["Arthur"])
    try statement.execute(arguments: ["Barbara"])
    return .commit
}