run_script
Run multiple SQL statements on a single DBeaver connection, automatically wrapping write operations in a transaction for data integrity.
Instructions
Run several SQL statements on one connection. Requires an exact connection name or id. Defaults to a transaction when any statement writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact connection name or id (no partial matching for writes) | |
| script | No | SQL script; split on top-level semicolons | |
| confirm | No | Required (true) if any statement is destructive | |
| maxRows | No | Row cap per statement (default 200) | |
| timeoutMs | No | Statement timeout in ms (default 30000) | |
| statements | No | SQL statements in order | |
| transaction | No | Force a transaction (default: on when any statement writes and there are 2+) |