Connectors

Vercel

Connect DB0 to Vercel Postgres

Read more in vercel.com/docs/storage/vercel-postgres.
A dedicated vercel connector is planned to be supported. Follow up via unjs/db0#32.

Usage

Use postgres connector:

import { createDatabase, sql } from "db0";
import postgres from "db0/connectors/postgres";

const db = createDatabase(
  postgres({
    /* options */
  }),
);