Simulacrum

Drizzle ORM

Configure Drizzle in generated projects, drizzle-kit workflows, and serverless driver notes.

Schema location

Generated apps place Drizzle schema modules under src/lib/db (exact path may vary by template). Types flow from the schema into repositories and server actions.

Commands

bash
npx drizzle-kit generate
npx drizzle-kit migrate
# or for rapid local iteration
npx drizzle-kit push

Connection string

Set DATABASE_URL for Postgres, Neon, or compatible hosts. For edge runtimes, pick a driver package that matches your deployment target.

push is convenient locally but can drift from production migration history. Prefer explicit migrations for shared environments.