Database Nodes
Connect your flows to various database systems. From lightweight embedded SQLite for edge devices to enterprise PostgreSQL and time-series InfluxDB for sensor data.
sqlite
Popular EmbeddedLightweight embedded database perfect for edge devices. No server required.
Configuration
{cfg.key} string Path to .db file {cfg.key} string "query" | "batch" | "prepared" {cfg.key} string SQL statement {cfg.key} array Query parameters Output Example
{node.details.output} postgresql
Popular RelationalConnect to PostgreSQL databases for enterprise-grade data storage.
Configuration
{cfg.key} string Database hostname {cfg.key} number 5432 (default) {cfg.key} string Database name {cfg.key} boolean Enable TLS Output Example
{node.details.output} mysql
RelationalMySQL/MariaDB database connectivity for web applications.
Configuration
{cfg.key} string Database hostname {cfg.key} number 3306 (default) {cfg.key} string Database name {cfg.key} string "utf8mb4" recommended Output Example
{node.details.output} mongodb
NoSQLNoSQL document database for flexible schema-less data storage.
Configuration
{cfg.key} string mongodb://host:27017/db {cfg.key} string Collection name {cfg.key} string "find" | "insert" | "update" {cfg.key} object MongoDB query object Output Example
{node.details.output} redis
Popular CacheIn-memory data store for caching, queuing, and real-time analytics.
Configuration
{cfg.key} string Redis hostname {cfg.key} number 6379 (default) {cfg.key} string GET, SET, HSET, etc. {cfg.key} number Expiration seconds Output Example
{node.details.output} influxdb
Popular Time SeriesTime-series database optimized for IoT sensor data and metrics.
Configuration
{cfg.key} string http://localhost:8086 {cfg.key} string API token (v2) {cfg.key} string Bucket name {cfg.key} string Measurement name Output Example
{node.details.output} Which Database Should I Use?
Zero configuration, file-based. Perfect for Raspberry Pi and offline-capable systems.
Purpose-built for IoT. Automatic downsampling, retention policies, and Grafana integration.
Blazing fast in-memory storage. Use for caching API responses or inter-flow communication.
Enterprise-grade reliability. Supports JSON, full-text search, and advanced features.
Best Practices
Batch Writes
Use the batch node before database writes to reduce query overhead and improve throughput.
Secure Credentials
Store credentials in environment variables, not in node configuration. Use secrets management.
SQL Injection
All database nodes support parameterized queries. Never concatenate user input into SQL strings.
Connection Pooling
Enable connection pooling for high-throughput flows to avoid the overhead of creating new connections.