What problem does it solve?
Drizzle ORM patterns prevent schema drift and migration mistakes when you need to support multiple SQL dialects (SQLite and MySQL) in the same application.
Core Features & Use Cases
- Multi-dialect schema organization (SQLite + MySQL): Keep equivalent table definitions and clients per dialect while sharing common column naming.
- Consistency verification: Validate that dialect-specific tables still match the intended column sets using schema consistency tests.
- Production-grade migration workflow: Generate and run separate migrations per dialect, plus optional database studio workflows for inspection and debugging.
Use Case: You are adding new session fields and raw-event tables to support persisted session management and event append/query in a web server that can run on SQLite locally and MySQL in production.
Quick Start
Add or update schema definitions under apps/server/src/db for the target dialect, ensure shared column names stay in sync, then run migrations for both SQLite and MySQL and verify schema consistency with the test that checks table columns.