test_procedure
Test stored procedures safely in a sandboxed transaction that rolls back changes by default, allowing verification without affecting database state.
Instructions
Test a stored procedure in a sandbox transaction (ROLLBACK by default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| sandbox | No | When true, wrap writes in a transaction and ROLLBACK (default from config) | |
| database | No | Database/schema name; defaults to connection default_database | |
| confirmed | No | Must be true for destructive operations when confirmation is required | |
| procedure | Yes | ||
| setup_sql | No | SQL to run before CALL | |
| connection | No | Named connection from config; defaults to default_connection | |
| capture_out | No | ||
| teardown_sql | No | SQL to run before ROLLBACK/COMMIT |