load_script_file
Read and optionally execute SQL scripts from disk with sandbox rollback, enabling safe testing and schema changes without permanent modifications.
Instructions
Read a SQL file from disk and optionally execute it (sandbox by default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to .sql file | |
| execute | 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 | |
| connection | No | Named connection from config; defaults to default_connection |