Drizzle ORM
Your data, your choice.
PostgreSQL, MySQL, SQLite, or Cloudflare D1. Switch databases without rewriting your app.
PostgreSQL
The gold standard for SaaS. Neon, Supabase, or self-hosted.
Cloudflare D1
Serverless SQLite at the edge. Insanely fast and cheap.
SQLite
Perfect for local dev and simple deployments.
MySQL
PlanetScale or classic MySQL hosting supported.
schema.ts
export const users = pgTable('users', { id: serial('id').primaryKey(), name: text('name').notNull(), email: text('email').notNull().unique(), role: text('role').default('user'), createdAt: timestamp('created_at').defaultNow() })