@nexusts/drizzle
v0.9.5
Published
Drizzle ORM integration (default ORM, 5 dialects)
Downloads
1,832
Readme
@nexusts/drizzle
NexusTS — Bun-native fullstack framework
Description
Drizzle ORM integration (default ORM, 5 dialects).
The default ORM. 5 dialects (PostgreSQL, MySQL, SQLite, D1, Bun SQL). DrizzleRepository for Lucid-style ergonomics; raw SQL through Drizzle's query builder (SQL-injection-safe by construction).
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/drizzlePeer dependencies
bun add drizzle-ormdrizzle-orm^0.36.0 — ORM integration; required only if you use Drizzle. Also install a driver (e.g. better-sqlite3, pg, mysql2, postgres).
Without them the module loads but its public methods throw a clear error pointing to this install command on first call.
Usage
import { /* public API */ } from "@nexusts/drizzle";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
