NestJS Drizzle ORM Helper Module v1.1.6. Provides a seamless integration of Drizzle ORM into NestJS applications with support for multiple databases: PostgreSQL (including Neon, Vercel, Supabase), MySQL (including PlanetScale), SQLite, Turso/LibSQL. Follows NestJS module conventions with DrizzleModule.forRoot() and per-database driver imports. Ships TypeScript types. Release cadence is irregular; stable but not widely adopted. Differentiator: official Drizzle NestJS integration alternatives exist, but this package simplifies configuration with driver-specific modules.
npm install nestjs-drizzleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic NestJS module setup with DrizzleModule.forRoot() and injection of Drizzle database instance.
Ensure only one forRoot() call in your app module. Use forFeature() for additional schemas if needed.
Install the appropriate driver package for your database (see README).
Always import from the specific driver path like 'nestjs-drizzle/postgres' or 'nestjs-drizzle/mysql'.
Update imports to use driver-specific subpaths.
Use import { DrizzleModule } from 'nestjs-drizzle/postgres' (or mysql, sqlite).Replace DrizzleModule.register() with DrizzleModule.forRoot().
Ensure only one call to DrizzleModule.forRoot() in your application.