Description
Run a custom SELECT (with JOIN, GROUP BY, CTE) and return rows. Read-only — use db_insert/db_update for mutations.
db_sql_query · action · Database · Available · v1.0.0
Run a custom SELECT (with JOIN, GROUP BY, CTE) and return rows. Read-only — use db_insert/db_update for mutations.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
databaseIdDatabase | db-picker | yes | — | — |
sqlSQL (solo SELECT) | code | yes | — SELECT o.order_number, ol.product_description FROM orders o JOIN order_lines ol ON ol.order_id = o.id WHERE o.order_date >= date('now','-90 days') ORDER BY o.order_date DESC | Statement SELECT (anche con CTE/JOIN/GROUP BY). Supporta {{espressioni}} per parametri dinamici. Limite riga applicato automaticamente. |
rowLimitLimite righe | number | no | 5000 | Cap di sicurezza per evitare di scaricare milioni di righe. Default 5000. |
JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-db_sql_query-1",
"defId": "db_sql_query",
"label": "DB: SQL Query (custom SELECT)",
"config": {
"databaseId": "<databaseId>",
"sql": "SELECT o.order_number, ol.product_description FROM orders o JOIN order_lines ol ON ol.order_id = o.id WHERE o.order_date >= date('now','-90 days') ORDER BY o.order_date DESC",
"rowLimit": 5000
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes