@theoven/db
v0.6.1
Published
The database contract for Oven — lifecycle, not queries
Maintainers
Readme
@theoven/db
The database contract for Oven — connect, health, close, transactions. Your queries stay native.
Part of Oven — the batteries-included framework for Bun. Add a brick, get a feature, fully typed.
Install
bun add @theoven/db @theoven/db-drizzle drizzle-ormUsage
import { db } from '@theoven/db'
import { drizzleSqlite } from '@theoven/db-drizzle'
const app = createApp().use(db(drizzleSqlite({ url: './data.db', schema })))
app.get('/users', (ctx) => ctx.db.select().from(users))ctx.db is the Drizzle instance — not a wrapper. The contract covers lifecycle only, so
there is no invented query API to learn and a model that knows Drizzle already knows this.
Documentation
https://theoven.app/docs/bricks/db/
Reading this with a coding agent? llms.txt is a model-readable
index of the whole documentation set, generated from it at build time.
License
MIT
