SQL Query
io.sql Storage v0.1.0 Runs a SQL query against PostgreSQL or MySQL with real server-side positional parameters ($1…$n / ?) — no string splicing. Outputs the rows, row count, and field types.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | Payload |
| Output | output | Rows |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
CredentialcredentialId | credential | "" | Use a stored credential for this connection — its fields are filled in at run start. Pick "None" to enter the connection details manually. accepts credential templates: postgresmysql |
Dialectdialect | select | "postgres" | Which database to talk to. SQLite/DuckDB are deferred until the worker baseline is Node ≥ 24. postgresmysql |
Hosthost | string | "localhost" | Database server hostname. |
Portport | int | 0 | Server port. 0 = the dialect default (5432 / 3306). |
Databasedatabase | string | "" | Database name to connect to. |
Useruser | string | "" | Database user. |
Passwordpassword | string | "" | Database password — supports ${credential.NAME.FIELD}. |
TLStls | select | "disable" | Protocol-native TLS upgrade. "Require" fails with SQL_TLS when the server refuses. disablerequire |
Queryquery | code | "" | The SQL to run. Use positional parameters — $1…$n (PostgreSQL) or ? (MySQL) — never splice values into the text. |
Parametersparams | json | [] | Positional parameter values as a JSON array, e.g. [42, "name", true, null]. |
Parameters fieldparamsField | string | "" | Dot-path to an array on the input to use as the parameters at run time (overrides the static list). |
Row limitrowLimit | int | 10000 | Maximum rows to return; further rows are dropped and the result is marked truncated. |
Timeout (ms)timeoutMs | int | 30000 | Abort the whole connection + query after this many milliseconds. |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.