Search docs

Jump between documentation pages.

Database hosting & serverless data providers

DaloyJS doesn't ship a database. It runs on Node, Bun, Deno, Cloudflare Workers, Vercel Edge, AWS Lambda, Deno Deploy, and Fastly Compute, so the right database depends on which adapter you target.

The pages in this section cover where your data lives — managed hosts and their drivers — separately from how you query it (see ORMs and ODMs). Most providers here pair with Drizzle or Prisma rather than replacing them.

Why this matters on edge runtimes

Cloudflare Workers and Vercel Edge don't expose raw TCP sockets, so the classic pg or mysql2 drivers will not connect directly. The providers below solve that by offering an HTTP / WebSocket driver, an HTTP data API, or a runtime-native binding. Pick a host whose driver matches the runtime you ship to.

Supported providers

  • Neon — serverless Postgres with branching, scale-to-zero, and an HTTP/WebSocket driver (@neondatabase/serverless).
  • PlanetScale — managed MySQL with Vitess, branching, deploy requests, and an HTTP driver (@planetscale/database).
  • Supabase — hosted Postgres plus auth, storage, and realtime via the fetch-based @supabase/supabase-js.
  • Turso — distributed libSQL (SQLite fork) via @libsql/client; works over HTTP for edge runtimes.
  • Cloudflare D1 — SQLite-compatible database bundled with Workers, accessed through a runtime binding (no network driver).
  • AWS Aurora DSQL — distributed PostgreSQL on AWS, ideal for the Lambda adapter.

Runtime compatibility

ProviderDriver styleNode.jsBun / DenoCloudflare WorkersVercel EdgeAWS Lambda
NeonHTTP & WebSocketYesYesYesYesYes
PlanetScaleHTTPYesYesYesYesYes
Supabasefetch-basedYesYesYesYesYes
Turso (libSQL)HTTP & WebSocketYesYesYesYesYes
Cloudflare D1Workers bindingNo (local dev only)NoYesNoNo
Aurora DSQLTCP (pg)YesYesNoNoYes

Choosing one

  • You target Cloudflare Workers exclusively — D1 (built-in) or Neon / PlanetScale / Turso over HTTP.
  • You want Postgres on Vercel Edge — Neon, Supabase, or PlanetScale Postgres through the Neon serverless driver.
  • You want MySQL with database branching — PlanetScale.
  • You want auth + storage + realtime in one package — Supabase.
  • You're all-in on AWS with the Lambda adapter — Aurora DSQL or RDS Postgres via standard pg.
  • You need SQLite-style data close to users — Turso or D1.

Once you've picked a host, layer your query API on top: Drizzle ORM works with every provider above, and Prisma works with most of them through Driver Adapters or standard Postgres/MySQL connectors.