{"library":"drizzle-gen","type":"library","category":null,"description":"drizzle-gen (v1.0.3) is a code-generation tool that automatically derives Drizzle ORM relations from your schema definitions. It parses your PostgreSQL or MySQL Drizzle schema files and generates a `.gen.ts` file with the correct `relations()` calls, saving you from manually writing and maintaining them. Key differentiators: zero runtime dependencies, runs as a one-off CLI or in watch mode, supports npx/pnpx/bunx/yarn dlx, and auto-updates on schema changes. However, it requires a single schema file path in `drizzle.config.ts` (list format not supported) and currently only works with PostgreSQL and MySQL. Ideal for Drizzle projects that want to avoid boilerplate relation code.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","drizzle","orm","relations","generator","typescript","postgresql","mysql"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install drizzle-gen","imports":["npx drizzle-gen","import { usersRelations } from './schema.gen'","npx drizzle-gen --watch"]},{"cmd":"yarn add drizzle-gen","imports":[]},{"cmd":"pnpm add drizzle-gen","imports":[]}],"homepage":"https://github.com/smrdotgg/drizzle-gen#readme","github":"https://github.com/smrdotgg/drizzle-gen","docs":null,"changelog":null,"pypi":null,"npm":"drizzle-gen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}