Integrations

Database Connectors

Connect directly to relational and NoSQL databases in your workflows.

Supported Databases

DatabaseOperations
PostgreSQLQuery, Insert, Update, Delete, Execute
MySQL / MariaDBQuery, Insert, Update, Delete, Execute
Microsoft SQL ServerQuery, Execute Stored Procedure
SQLiteQuery, Execute
MongoDBFind, Insert, Update, Delete, Aggregate
RedisGet, Set, Delete, Publish, Subscribe

Setting Up a Database Credential

  1. Go to Settings → Credentials → Add → PostgreSQL (or your DB type)
  2. Enter:

- Host, Port, Database name - Username and Password - SSL mode (recommended: require for production)

  1. Click Test Connection to verify
  2. Save

Writing Safe Queries

Always use parameterised queries to prevent SQL injection:

-- ✅ Safe — parameterised
SELECT * FROM users WHERE email = $1 AND tenant_id = $2

-- ❌ Never do this — string interpolation
SELECT * FROM users WHERE email = '{{ $json.email }}'

Map parameters in the Query Parameters field:

["{{ $json.email }}", "{{ $env.TENANT_ID }}"]

Handling Large Result Sets

For queries returning thousands of rows, enable Streaming Mode to process results in batches and avoid memory issues.

Transactions

Wrap multiple operations in a transaction using the Execute Query node:

BEGIN;
  UPDATE accounts SET balance = balance - $1 WHERE id = $2;
  UPDATE accounts SET balance = balance + $1 WHERE id = $3;
COMMIT;