Execute non-production MySQL transaction
mysql_execute_transactionExecute 1–20 parameterized INSERT, REPLACE, UPDATE, or DELETE statements atomically on one non-production connection; rolls back on the first error. Rejects production, DDL, and reads.
Instructions
Atomically execute 1-20 parameterized INSERT, REPLACE, UPDATE, or DELETE statements on one non-production connection. Rolls back on the first error. Prod, DDL, reads, transaction control, and session control are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_all | No | Explicitly permit transaction UPDATE or DELETE statements without WHERE. | |
| statements | Yes | Ordered INSERT, REPLACE, UPDATE, or DELETE statements committed atomically. | |
| timeout_ms | No | Client-side query timeout in milliseconds, from 1000 through 120000. | |
| connection_id | Yes | Configured connection ID, for example prod-main or test-main. | |
| response_format | No | Response rendering: markdown for humans or json for programmatic processing. | markdown |