Drizzle ORM is a lightweight TypeScript layer for PostgreSQL, MySQL, and SQLite, including many serverless providers. It runs in Node.js, Bun, Deno, edge runtimes, and browsers.
Overview
Drizzle ORM targets JavaScript and TypeScript applications that need typed access to SQL without heavy dependencies. You declare schemas and build relational or SQL-style queries with a balance of type safety and extensibility.
It connects to PostgreSQL, MySQL, SQLite, and hosted options such as Turso, Neon, Xata, PlanetScale, Cloudflare D1, Fly.io LiteFS, Vercel Postgres, Supabase, and AWS Data API. The design avoids Rust binaries and separate serverless adapters.
Drizzle Kit is a CLI companion for migrations: it can generate SQL migration files or apply schema changes directly. Drizzle Studio offers browsing and editing of database data. Documentation covers schema, relations, migrations, queries, and many database connectors.
Key features
- PostgreSQL, MySQL, SQLite support
- Serverless database connectors
- SQL schema declarations
- Relational and SQL-like queries
- Drizzle Kit migrations CLI
- Drizzle Studio data browser
- Zero runtime dependencies
- Tree-shakeable package
Use cases
- TypeScript backend data access
- Serverless and edge applications
- SQL migrations in app projects
- Multi-database TypeScript stacks