Use Drizzle in NestJS app
Hi everyone ! I am new to both drizzle and NestJS and was wondering if there was any recipe out there to use Drizzle in NestJS (I couldn't find anything)
should I create a service or something ? (as Prisma ?)
9 Replies
Okay so basically what I did is this :
drizzle.module.ts
drizzle.service.ts
app.module.ts
Hello! Is this a working solution?
Yes it works
we also make the module global for easyer use
What does that change exactly ? (I am new to NestJS)
You just don't have to import it in module files
Ohhhh awesome !
Bro, I try this implementations and I can't run the app, i got this error : Obs: My connectionString is rigth
@zzao Use this package https://github.com/knaadh/nestjs-drizzle
GitHub
GitHub - knaadh/nestjs-drizzle: A NestJS module for integrating Dri...
A NestJS module for integrating DrizzleORM with Postgres, MySQL, SQLite, Turso and Planetscale drivers - GitHub - knaadh/nestjs-drizzle: A NestJS module for integrating DrizzleORM with Postgres, My...