execute_transaction
Run multiple SQL statements in one atomic transaction so all commit or none, with the same guardrails as single writes. Use for backup, delete, and insert operations that must succeed together.
Instructions
Runs several statements inside ONE transaction: all of them commit, or none. Every statement goes through the same checks as execute. The sequence check runs after the last statement, so an INSERT with explicit keys can be followed by its setval. Use it for operations that must be atomic (e.g. backup + delete + insert).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| statements | Yes | SQL statements, one per item (no BEGIN/COMMIT: the server manages the transaction) | |
| description | Yes | Description of the whole set | |
| i_understand | No |