drizzle-orm
Installation
SKILL.md
Drizzle ORM
Drizzle 0.45 is the stable line; 1.0 is a release candidate. Everything here is
0.45. Check package.json before copying, and read MIGRATIONS.md before an upgrade.
Quick Reference — When to Load What
| Working on… | Read |
|---|---|
| drizzle.config, generate/migrate, renames, CI drift, upgrading to 1.0 | MIGRATIONS.md |
| Policies, app role, current user per request | RLS.md |
| Pool vs serverless driver, Next.js singleton, test database | CONNECTIONS.md |
Schema — Identity Columns, Not Serial
// BAD: serial is legacy PostgreSQL
id: serial().primaryKey(),