Database Execute
Database Execute runs a SQL statement that does not return a result set
against an external database: DDL such as CREATE, ALTER, DROP, or
TRUNCATE, and DML such as INSERT, UPDATE, DELETE. For queries
that emit rows downstream use
Database Select; for row-shaped writes
mapped to a table’s columns use
Database Insert or
Database Upsert. You find it on the node
picker’s Storage shelf.
The node connects with a secret of type Database credentials. Create one under Connections → Secrets first; see Secrets.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Secret credential (secretCredentialId) | string ✦ (required) | — | The database credentials to connect with, chosen from your secrets. |
Extra credentials (extraCredentials) | key-value map (optional) | — | Extra connection settings merged on top of the chosen secret’s config. |
Statement (statement) | string ✦ (required) | — | The SQL statement to run (for writes such as INSERT, UPDATE, DELETE or DDL). |
Parameters (parameters) | key-value map (optional) | — | Named parameters bound into the statement’s placeholders. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
extraCredentials entries are merged into the connection config as
written and are not expression-resolved. Use a separate secret per
server instead.
Output
Section titled “Output”The node emits a single status object:
{ "ok": true }ok reports whether the statement executed without error. The node does
not surface row counts; follow with a
Database Select when you need to verify
what a statement changed.
An Agent can call this node as a tool. It runs arbitrary SQL against an outside system, including destructive statements, so agent calls are approval-gated in every mode below Autopilot; see Add human approval.
Example
Section titled “Example”The Database / Execute template in the template gallery creates a table idempotently:
CREATE TABLE IF NOT EXISTS smoke_execute_demo ( id text PRIMARY KEY, payload text)The Database / Execute — UPDATE chain template seeds and updates a row through a chain of Execute nodes, then verifies the result with a Database Select. A delete with an expression-driven predicate binds its cutoff through the parameters map:
DELETE FROM customers WHERE created_at < :cutoffparameters: cutoff → {{ $start->cutoff }}Related
Section titled “Related”- Database Select reads rows.
- Database Insert and Database Upsert write rows without hand-written SQL.
- Secrets covers credential secrets.
- Use an external database walks through the setup.