Database
Use Bun SQLite directly or add Drizzle while retaining native query and transaction APIs.
Choose SQL or an ORM
Current database adapters open file-backed Bun SQLite. Choose database-bun-sqlite for native SQL or database-drizzle/bun-sqlite for schema-typed Drizzle queries. Neither needs an application-wide Runtime.
- Bun SQLite and optional Drizzle: open a connection and use native queries.
- Connection ownership and migrations: plan startup, shutdown and schema changes.
PostgreSQL, D1 and Prisma adapters are not implemented. Using another native database is valid, but does not imply a Smoothie integration or qualified deployment.
Own the data model
Applications define schemas, migrations, permissions, transactions and public DTOs. Row types are not runtime validation; validate stored data where it crosses a public boundary.
For uploaded bytes, use Storage. For request and response validation, use Service contracts.