Skip to content
New to BhaiCode? Install the desktop app in under a minute, or build in your browser with Cloud Studio.
BhaiCode Docs
BhaiCode Docs
Databases & Storage › Managed Databases & Storage

Managed Databases & Storage

Provision Cloudflare D1 (edge SQLite), Neon Serverless Postgres, and Supabase without leaving your workspace.

BhaiCode provisions persistent storage for you, then wires it into your project: the connection string lands in your environment, the client library is installed, and Bhai writes migrations when you describe your data model.

EngineTypeBest forDefault tooling
Cloudflare D1Edge SQLiteFast reads, content sites, lightweight appsDrizzle ORM
Neon PostgresServerless PostgresRelational schemas, branch-based testing, autoscalingDrizzle, Prisma, @neondatabase/serverless
SupabasePostgres + backendAuth, storage buckets, realtime@supabase/supabase-js, Drizzle

What provisioning does

Create the database

In Cloud Studio, open the Databases drawer and click Provision database.

Bind credentials

Connection strings and keys are written to project environment variables (DATABASE_URL, NEXT_PUBLIC_SUPABASE_URL, …), never exposed to the client bundle.

Install tooling

The ORM and client packages are added, with a typed schema starter for Drizzle.

Run migrations

Describe your model and Bhai generates and runs the SQL migration.

Each engine above also has its own connector page for OAuth and project linking. Start from Connectors if you have not connected a provider yet.

Was this page helpful?