Database Integrations
PostgreSQL, MongoDB, Redis, and 17 more — one ee.database call
PostgreSQL, MongoDB, Redis, Elasticsearch, Supabase, PlanetScale, and more — all through ee.database. Connection pooling, read replicas, automatic failover — built in.
Supported databases
Pick the right engine. Same API.
| Database | Best For |
|---|---|
| PostgreSQL | Relational data, transactions, complex queries |
| MySQL | Web applications, read-heavy workloads |
| MongoDB | Document storage, flexible schemas |
| Redis | Caching, sessions, real-time data |
| Elasticsearch | Full-text search, log analytics |
| DynamoDB | Key-value at scale, serverless |
| Supabase | Postgres with real-time, auth, and storage |
| PlanetScale | MySQL with branching and zero-downtime schema changes |
| Neon | Serverless Postgres with branching |
| Turso | Edge-native SQLite, low latency globally |
| CockroachDB | Distributed SQL, multi-region, strong consistency |
Code
One interface. Any engine.
// Query any database — one interface
const users = await ee.database.query({
engine: 'postgres',
sql: 'SELECT * FROM users WHERE plan = $1',
params: ['pro'],
})
// Switch to MongoDB — same pattern
const docs = await ee.database.query({
engine: 'mongodb',
collection: 'orders',
filter: { status: 'pending' },
sort: { createdAt: -1 },
})
// Redis caching — same face
await ee.database.set({
engine: 'redis',
key: 'session:abc123',
value: sessionData,
ttl: 3600,
})Features
Production-ready. By default.
Connection Pooling
Automatic connection pooling — no pool exhaustion, no cold starts.
Read Replicas
Route reads to replicas automatically — scale without code changes.
Automatic Failover
Primary goes down? EEv3 fails over to the replica transparently.
Migration Tools
Schema migrations, rollbacks, branching — built into the SDK.
Connect your database
One connection string. Automatic pooling, failover, and replicas.
See All Integrations