Supported Databases
Zequel supports 9 database types:- PostgreSQL - Full-featured relational database
- MySQL - Popular open-source relational database
- MariaDB - MySQL fork with enhanced features
- SQL Server - Microsoft’s enterprise database
- SQLite - Embedded file-based database
- DuckDB - In-process analytical database
- ClickHouse - Column-oriented OLAP database
- MongoDB - Document-oriented NoSQL database
- Redis - In-memory key-value store
Creating a Connection
Connections are created and stored in Zequel’s local SQLite database. Each connection configuration includes:Basic Configuration
Display name for the connection
Database type (postgresql, mysql, mariadb, sqlserver, sqlite, duckdb, clickhouse, mongodb, redis)
Database server hostname or IP address (not required for SQLite/DuckDB)
Database server port. Defaults:
- PostgreSQL: 5432
- MySQL/MariaDB: 3306
- SQL Server: 1433
- MongoDB: 27017
- Redis: 6379
- ClickHouse: 8123
Database/schema name to connect to
Authentication username
Authentication password (stored securely)
File-Based Databases
For SQLite and DuckDB:Absolute path to the database file
Security Options
Enable SSL/TLS encryption (see SSL/TLS Configuration)
SSH tunnel configuration (see SSH Tunneling)
SQL Server only: Accept self-signed certificates
Connection Management
Saving Connections
Connections are persisted using theConnectionsService:
Organizing Connections
Connections can be organized with:Connection Sessions
When you connect to a database, Zequel creates a session with a unique ID separate from the saved connection ID:Session Management
TheConnectionManager handles:
- Health Checks - Automatic ping every 30 seconds (PostgreSQL, MySQL, MariaDB, SQL Server, MongoDB, Redis)
- Auto-Reconnect - Up to 5 reconnection attempts with exponential backoff (1s, 2s, 4s, 8s, 16s)
- SSH Tunnels - Lifecycle management tied to session
- Query Logging - All queries logged with execution time
SQLite, DuckDB, and ClickHouse skip health checks as they use different connection models
Connection Status Events
Zequel emits real-time connection status events:Testing Connections
Before saving, test the connection to verify credentials and network access:Connection Lifecycle
Connect
Establish session with database driver
- Create SSH tunnel if configured
- Initialize database driver (pg, mysql2, mssql, etc.)
- Start health check interval
- Wrap driver for query logging
Error Handling
Connection errors are handled gracefully: To manually trigger reconnection:Multiple Connections
You can open multiple sessions to the same saved connection:Best Practices
Use folders to organize connections
Use folders to organize connections
Group connections by environment, project, or client to keep your workspace organized.
Test before saving
Test before saving
Always test connections before saving to catch configuration errors early.
Use environment labels
Use environment labels
Tag production databases to avoid accidental modifications.
Enable SSH tunneling for remote databases
Enable SSH tunneling for remote databases
Use SSH tunnels instead of exposing databases directly to the internet.
Use SSL/TLS in production
Use SSL/TLS in production
Enable SSL with certificate verification for production databases.
Related
SSH Tunneling
Securely connect to remote databases through SSH
SSL/TLS Configuration
Encrypt database connections with SSL/TLS