Skip to Content
coaadedocs

Databases

Create managed PostgreSQL, MongoDB and Redis databases per project, connect them automatically, and query them from the IDE.

Create a database from the IDE's database panel, or ask Coaade Code to create one. It's wired into your app for you.

Engines and plan limits

EngineFreeProTeamEnterprise
PostgreSQL—5 databases, 1 GB each10 databases, 4 GB eachCustom
MongoDB1 database, 64 MB5 databases, 1 GB each8 databases, 2 GB eachCustom
Redis——2 instances, 256 MB eachCustom

Pro and above include automated database backups. Team and above include connection pooling.

Connect your app

Deployed server apps get these environment variables automatically:

VariableEngine
DATABASE_URLPostgreSQL
MONGODB_URIMongoDB
REDIS_URLRedis

Read them in your code instead of hardcoding credentials:

import pg from 'pg';

const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL });
const { rows } = await pool.query('SELECT now()');

Query from the IDE

The database view shows credentials, size and limits next to your code. Write a query and press Ctrl+Enter to run it. Redis databases have their own tab for keys and commands.

On this page