Resources · n8n integration

CrateDB n8n integrationAutomate CrateDB with n8n.

Three operations, and all the SQL you care to write. The CrateDB n8n integration gives you one node, 1 resource and a direct connection to the cluster: Execute Query runs the statement, Insert adds rows, Update rewrites the ones already stored. No CrateDB trigger exists, so the workflow starts elsewhere.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the CrateDB n8n integration actually do?

The CrateDB node is the piece that lets an n8n workflow talk to a CrateDB cluster in SQL. One resource, 3 operations: Execute Query runs whatever statement you write, Insert adds rows, Update rewrites rows that are already there. The credential describes a database, host and port and database name, not a web API key. That difference shapes everything else on this page.

Start with ingestion, because that is where most people meet the node. A Schedule Trigger, the n8n node that fires on a fixed interval, pulls the day's lines from Google Sheets, and an Insert operation drops them into a table. What makes or breaks that step is the Columns field: you list the property names carried by the incoming item, id,name,description, and each one lands in the column of the same name. Column types are declared in the same place, by appending :type to a name, as in id:int,name:text.

Correction is the second move. Prices change, quantities change, and yesterday's rows have to catch up. Update handles that in one pass: Update Key names the property that decides which rows get touched, normally id, while Columns names what gets rewritten. Values still come from the item, through an expression, the n8n syntax that reads a value off the incoming item, such as {{ $json.price }}.

Reading is the third, and the habit worth building lives in two fields. Put quantity,price in Query Parameters, write quantity > $1 in the Query, and the values travel beside the SQL instead of being glued into it. The result set arrives as items, ready for a Slack message or a write into another store such as MongoDB.

One point deserves to be said plainly: the CrateDB credential opens a connection to the database, not an HTTP API. The usual reflex of falling back on the HTTP Request node does not apply here. The fallback is Execute Query, which accepts any statement you can write in SQL, and that is why 3 operations are enough where a web app node needs a long list of them. If your data also lives elsewhere, there are pages for Postgres and MySQL.

Two community templates show the whole sequence. Workflow 597 creates a table in CrateDB and inserts data into it; workflow 609 handles incident reporting across PagerDuty and CrateDB. Open one next to the node and the field names stop being abstract. For the rest of n8n rather than this single node, the n8n training picks up from there.

Connect

How do you connect CrateDB to n8n?

  1. 01

    Collect the cluster details

    Open the Credentials menu in n8n and create a CrateDB credential. Three fields say where to knock: Host, the name of your instance, Port, the number it listens on, and Database, the database you want to reach. You need a running CrateDB instance first, and the n8n documentation points to CrateDB's own connection guide for the default values of these fields.

  2. 02

    Fill in the account and the encryption

    User and Password are the account n8n signs in with, so pick one that can already read and write the tables you plan to touch. SSL sets how the connection is secured and takes one of three values: Allow, Disable, Require. Choose the one your cluster is configured for instead of keeping whatever is preselected.

  3. 03

    Select the credential in the node

    Drop a CrateDB node on the canvas and pick the credential from its dropdown. A credential is created once and reused across workflows, which means the next CrateDB node already offers it without any retyping. Then choose the operation: Execute Query, Insert or Update. Running a short Execute Query before anything else is the fastest proof that the connection holds.

Actions

What can the CrateDB node do?

The CrateDB node exposes 3 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

Whatever SQL you type runs against the connected database, and the rows come back into the workflow as items.

Key parameters

  • Query: the statement to execute, required. It accepts n8n expressions and the placeholders $1 and $2, as in WHERE quantity > $1.
  • Query Parameters: in Additional Fields, a comma separated list of properties used as query parameters, quantity,price in the documented example.
  • Mode: also in Additional Fields. Multiple Queries is the default and sends several queries at once; Independently runs each one on its own, which works with Continue on Fail.
Use cases
a scheduled read that pulls every product above a quantity threshold.
02

Insert rows in database

insert

What you see in n8n

Notes & use cases

Every incoming item becomes a row in the table you name, and the node hands back the fields you ask for.

Key parameters

  • Schema: required, the name of the schema the table belongs to.
  • Table: required, the table that receives the data.
  • Columns: a comma separated list of the item properties used as columns for the new rows, such as id,name,description. Append :type to a name to set a column's data type, as in id:int,name:text.
  • Return Fields: the fields the operation sends back to the workflow once the rows are written.
Use cases
an online shop loading the day's order lines into a reporting table before anyone opens a dashboard.
03

Update rows in database

update

What you see in n8n

Notes & use cases

Rows that already exist get rewritten with the values carried by the items, one matched set per run.

Key parameters

  • Update Key: required, the comma separated list of properties that decides which rows in the database should be updated. Normally that would be id.
  • Schema and Table: required here too, they aim the update at one table rather than the whole database.
  • Columns: the properties written into the matched rows, name,description for example.
  • Return Fields: what comes back afterwards, handy when the next node has to confirm the change.
Use cases
refreshing the price and quantity of products whose values moved since the last sync.
Need help

Need help automating CrateDB with n8n?

A person reads every message.

FAQ

CrateDB and n8n, the questions that come next

01Is the CrateDB n8n integration free?
Yes on the n8n side. The CrateDB node ships with n8n, so there is nothing to install and no extra n8n cost, whether you run n8n Cloud or a self-hosted instance under the Community Edition and its Sustainable Use licence. A workflow behaves the same in both places, and the credential you create once is reused by every CrateDB node you add later. What the CrateDB cluster itself costs is a separate question that depends on how you run it, so treat the n8n side as included and the database side as your own infrastructure call.
02What credentials does the CrateDB node need?
One credential, the account connection type, stored under the Credentials menu in n8n. It holds 6 fields: Host, Database, User, Password, SSL and Port. Host, Port and Database say where the cluster and the database sit. User and Password are the account n8n signs in with, so it should already be allowed to read and write the tables in play. SSL takes one of three values, Allow, Disable or Require. An available CrateDB instance is the prerequisite, and CrateDB's own connection documentation is where the n8n docs send you for the default values.
03What do you do when the node does not have the operation you want?
You write the SQL yourself. The node exposes 3 operations, Execute Query, Insert and Update, and Execute Query takes any statement you can express in SQL, so that is the recourse here. One thing to keep in mind: the CrateDB credential opens a database connection through Host, Port and Database, not an HTTP endpoint, so the HTTP Request node is not the fallback it would be for a web API. Inside Execute Query, Query Parameters keeps values separate from the statement, and Mode decides whether several queries go out at once or each one runs independently.
04Does n8n have a CrateDB trigger?
No. There is no CrateDB trigger node in n8n, so a workflow that touches the database starts somewhere else: a Schedule Trigger firing on a fixed interval, the n8n Webhook node called by another service, or the trigger of another tool you already automate. From there the CrateDB node does its part, reading with Execute Query or writing with Insert and Update. A schedule covers most batch work, and an external event covers the rest. Template 609 illustrates the second shape, since it pairs PagerDuty with CrateDB in one workflow.
05n8n or Make for CrateDB?
It depends on where the data is allowed to sit. n8n self-hosts with Docker or npm, or runs on n8n Cloud, the hosted offer, and a workflow is identical either way. A cluster that stays inside your own network can therefore be reached by an n8n instance placed next to it. Make is hosted only, with no self-hosting option, and it bills per operation, which changes the arithmetic when a workflow writes a large batch of rows every hour. Both build visually. The real criteria are hosting, control over the data, the cost model, and which visual logic you find easier to read.