write_query
Execute INSERT, UPDATE, DELETE, and DDL statements on a specified database connection, with multi-statement transactions and confirmation required for destructive operations.
Instructions
Run INSERT/UPDATE/DELETE/DDL. Requires an exact connection name or id. Several statements in one string run on one connection; more than one write is wrapped in a transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact connection name or id (no partial matching for writes) | |
| query | Yes | Mutating SQL (one or more statements) | |
| confirm | No | Required (true) for destructive statements: DROP, TRUNCATE, ALTER SYSTEM, or DELETE/UPDATE without WHERE | |
| timeoutMs | No | Statement timeout in ms (default 30000) |