Type-safe CRUD for Drizzle ORM in NestJS.

Configure the connection once in AppModule. Every entity gets the full CRUD surface — type-safe, dialect-aware, and ready to extend.

NestJS 10+Drizzle 0.28+PostgreSQLMySQL
Prerequisites
  1. 1
    Configure once in AppModule
    DrizzleCrudModule.forRoot({
      dialect: 'postgresql',
      connectionString: process.env.DATABASE_URL,
      schema,
    });
  2. 2
    A service is an empty subclass
    export class UsersService extends SqlBaseCrudService<User> {}
  3. 3
    Bind it to its table
    DrizzleCrudModule.forFeature([
      { service: UsersService, table: users },
    ]);

That's it — UsersService now has find, create, update, delete, soft delete, restore, bulk ops, filtering, pagination, and full-text search.

What you get

Compatible with

PostgreSQL
MySQL
Node.js
Bun
Deno

Latest releases