Description
Add SQLite (and Cloudflare D1) as an alternative database provider alongside PostgreSQL. Drizzle ORM already supports SQLite — this change surfaces that support through Nerva's pipeline and templates.
Why
SQLite is ideal for prototyping, local development, and edge deployments. Cloudflare D1 (SQLite at the edge) is the native database for Cloudflare Workers. Currently Nerva defaults to PostgreSQL everywhere — even for Workers projects where D1 is the natural fit.
Current State
- `pipeline.config.json` has `database.defaultProvider: "postgresql"`
- `setup-project.sh` always generates PostgreSQL Drizzle config
- The `database-design` skill generates `pgTable` schemas exclusively
Acceptance Criteria
Breaking Changes
None — PostgreSQL remains the default. SQLite is opt-in.
Description
Add SQLite (and Cloudflare D1) as an alternative database provider alongside PostgreSQL. Drizzle ORM already supports SQLite — this change surfaces that support through Nerva's pipeline and templates.
Why
SQLite is ideal for prototyping, local development, and edge deployments. Cloudflare D1 (SQLite at the edge) is the native database for Cloudflare Workers. Currently Nerva defaults to PostgreSQL everywhere — even for Workers projects where D1 is the natural fit.
Current State
Acceptance Criteria
Breaking Changes
None — PostgreSQL remains the default. SQLite is opt-in.