Wraps a list of statements in BEGIN TRANSACTION; and COMMIT TRANSACTION; and sends them as a single atomic query. This works on any transport and is the recommended way to run a transaction over HTTP.
Arguments
| Argument | Description |
|---|---|
statements | The statements to run, as a List[String]. A trailing semicolon is added to each if missing. |
session | An optional session id. |
Example usage
If any statement fails, the whole transaction is rolled back.