Grouping Statements¶
You can group multiple SQL statements together to be executed at once inside a transaction:
upsert {
UPDATE myTable
SET column1 = :column1,
column2 = :column2
WHERE id = :id;
INSERT OR IGNORE INTO myTable (id, column1, column2)
VALUES (:id, :column1, :column2);
}