Resources · n8n integration

QuestDB n8n integrationAutomate QuestDB with n8n.

Reading or writing QuestDB rows from a workflow takes a single node. The QuestDB n8n integration carries 2 operations on one resource: Execute Query and Insert. n8n ships no QuestDB trigger, so a Schedule or Webhook node starts the run. Written for builders who already keep an instance up.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the QuestDB n8n integration actually do?

The QuestDB n8n integration is one node that opens a database connection to your QuestDB instance and runs SQL on it. Two operations cover the ground. Execute Query sends any statement you write and hands back what the statement returns. Insert takes the items flowing through the workflow and writes them as rows in a table you name. The connection details live in a reusable credential: host, port, database, user, password, plus an SSL mode.

Start with the reporting case, since it is the one people build first. A Schedule Trigger fires every morning, Execute Query runs a SELECT, and the rows leave n8n as a tab in Google Sheets or a message in Slack. The node reads, the rest of the workflow formats.

Then the write side. Items arriving from an n8n Webhook, a form or another system get stored with Insert. You give the table name, list the properties that should become columns, and each item lands as a row. There is a published template, n8n.io/workflows/592, that creates a table and inserts data in the same workflow, which is a decent starting point when the table does not exist yet.

The third case is the quiet one: a scheduled statement that keeps the data usable. Execute Query accepts anything you can write in SQL, so the same node that reads for a report can run the housekeeping statement your team already runs by hand.

One habit to unlearn. On most n8n integrations, when the node lacks the operation you want, the advice is to fall back on the HTTP Request node and call the API yourself. That does not apply here. The QuestDB credential opens a database connection, not an HTTP API, so there is no endpoint to call. The fallback is Execute Query, which takes any SQL statement. The same reflex applies on other database nodes, such as Postgres.

Two limits worth knowing before you draw the workflow. There is no QuestDB trigger, so nothing watches the database on your behalf: every run starts on a Schedule Trigger, on an n8n Webhook called by a third party, or on the trigger of another app. And both operations go through the same credential, so the database account you configure sets the ceiling. Point it at the read-only user from your server config and the workflow reads, nothing else. If you are still weighing platforms, the n8n review goes into the hosting question in more detail.

Connect

How do you connect QuestDB to n8n?

  1. 01

    Create the QuestDB credential

    In n8n, open the Credentials menu and pick QuestDB. Fill Host with the host name or the IP address of the server, and Database with the database name, qdb for example. A credential is a stored set of connection details: you create it once, and every QuestDB node you drop in any workflow after that offers it in a dropdown.

  2. 02

    Fill the account and the port

    User and Password come from your server.conf: the pg.user and pg.password properties, or pg.readonly.user and pg.readonly.password for an account meant to read only. A fresh install answers on admin and quest. Port is the port used for this connection, 8812 by default, so leave it alone unless someone changed it on the server.

  3. 03

    Pick the SSL mode, then test it

    SSL sets the sslmode parameter on the connection and offers three options: Allow, Disable and Require. Save, then drop a QuestDB node into a scratch workflow, select the credential, and run a short Execute Query. A connection problem shows up there, not three nodes later.

Actions

What can the QuestDB node do?

The QuestDB node exposes 2 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.

01

Execute a SQL query

executeQuery

What you see in n8n

Notes & use cases

Sends the statement you write straight to QuestDB and returns what it returns. It doubles as the answer when the node has no dedicated operation.

Key parameters

  • Query: the SQL to execute, required. n8n expressions work here, and so do $1 and $2 paired with query parameters, as in SELECT id, name FROM product WHERE quantity > $1.
  • Mode: in Additional Fields. Independently runs each query on its own, Transaction executes all of them in a single transaction.
  • Query Parameters: a comma-separated list of the properties used as query parameters, quantity,price for the statement above.
Use cases
pull the rows of the past day for a morning digest, or count what landed overnight before alerting anyone.
02

Insert rows in database

insert

What you see in n8n

Notes & use cases

Writes the items reaching the node into a table you name. One item in, one row out, no SQL to write.

Key parameters

  • Table: the name of the table to insert into, required. Typed in plain text most of the time, or taken from the previous node with {{ $json.field }}.
  • Columns: a comma-separated list of the properties to use as columns for the new rows, id,name,description for instance. Append :type to a name to set that column data type, as in id:int,name:text.
  • Return Fields: a comma-separated list of the fields the operation gives back.
Use cases
a Webhook node collects sensor readings and Insert files them away; template 592 creates the table first, then writes into it.
Need help

Need help automating QuestDB with n8n?

A person reads every message.

FAQ

QuestDB and n8n, the questions that come next

01Is the QuestDB n8n integration free in n8n?
Yes on the n8n side. The QuestDB node ships with n8n, so there is nothing to install and nothing extra to pay for the connector, whether you work on n8n Cloud, the hosted offer run by n8n, or on your own instance under the Community Edition and its Sustainable Use licence. A workflow behaves the same way in both places, and a credential created in one is used the same way in the other. What running QuestDB itself costs you is a separate question, and the node documentation says nothing about it, so treat the database and the machine under it as their own line.
02Which credentials do you need to connect QuestDB to n8n?
One type, called Database connection, with six fields to fill. Host takes the host name or the IP address of the server. Database takes the database name, qdb for example. User and Password match the pg.user and pg.password properties of your server.conf, or pg.readonly.user and pg.readonly.password for an account that only reads, and a fresh install answers on admin and quest. SSL sets the sslmode parameter and offers Allow, Disable or Require. Port defaults to 8812. Create it once in the Credentials menu and every QuestDB node in every workflow picks it from a dropdown.
03What are the limits of the QuestDB node in n8n?
Two operations on a single resource, Execute Query and Insert. That reads thin on paper, until you remember that Execute Query accepts any SQL statement you can write, which is where a missing operation goes. This is the part worth stressing, because the usual n8n reflex misleads here: the QuestDB credential opens a database connection, not an HTTP API, so the HTTP Request node is not the fallback. Execute Query is. The other ceiling is the account itself. The database user you put in the credential defines what the workflow can reach, and a read-only account keeps the workflow on the reading side.
04Does the QuestDB node react in real time?
No, and the reason is simple: n8n has no QuestDB trigger node. Nothing sits and watches the database to wake a workflow when a row lands. You start the run yourself, in one of three ways. A Schedule Trigger fires on a fixed interval and runs an Execute Query. An n8n Webhook gives you a URL that a third-party service calls, and the workflow starts on that call. Or the trigger of another app already in the workflow does the starting. In practice the scheduled read covers reporting, and the Webhook covers the write path, since whatever posts to n8n can go straight into Insert.
05n8n or Make for QuestDB?
It comes down to four criteria, and neither tool is the wrong answer. Hosting: n8n runs on your own server or on n8n Cloud, while Make is hosted only, with no self-hosting option. Data control: on a self-hosted n8n, the connection details and the rows stay inside your own infrastructure, which matters when the QuestDB instance sits on a private network. Cost model: Make bills per operation, so a workflow that writes rows all day is priced differently from one that reads once a morning. Visual logic: both draw the workflow on a canvas, and that part is mostly habit.