Execute DB Query
nexusai_db_query_executeExecute confirmed SQL against an external DB source. Supports SELECT, INSERT/UPDATE/DELETE (with WHERE), and DDL including CREATE/DROP FUNCTION, CREATE/DROP TRIGGER, CREATE/DROP VIEW, CREATE/DROP PROCEDURE. DML and DDL require confirmed=true. Function/procedure bodies with dollar-quoting ($$...$$) are fully supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL statement to execute. | |
| maxRows | No | ||
| confirmed | No | Set to true only after the person has reviewed and approved this exact statement. Required for DML/DDL. | |
| dbSourceId | Yes | DB source UUID. |