{"repo":"omnidotdev/typespec-drizzle","free":true,"listed":false,"github":"https://github.com/omnidotdev/typespec-drizzle","clone":"git clone https://github.com/omnidotdev/typespec-drizzle.git","description":"🌧️ Typespec Drizzle emitter","language":"TypeScript","stars":12,"topics":["codegen","database","drizzle","emitter","foss","library","omni","open-source","orm","postgres"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"TypeSpec Drizzle Emitter Join Omni community on Discord A TypeSpec emitter that generates Drizzle ORM schema definitions and types from TypeSpec specifications. Learn about TypeSpec emitters here. [!IMPORTANT] Project Status: 🚧 This project is brand new . Use at your own risk. Overview This emitter allows you to define your database schema using TypeSpec's type-safe language with specialized decorators and automatically generate Drizzle ORM schema files, enabling a single source of truth for your database schema definitions alongside other artifacts. Features - Generate Drizzle schema definitions from TypeSpec models - Decorator-based configuration for database-specific concerns - Support for table customization, constraints, and relationships - Primary keys, unique constraints, indexes, and default values - One-to-one, one-to-many, and many-to-many relationships - Junction table support for many-to-many relationships - Schema namespacing and custom table/column names - Type-safe database schema generation - Integration with TypeSpec's existing ecosystem Installation Usage Basic Usage 1. Add the emitter to your TypeSpec configuration ( tspconfig.yaml ): 2. Define your models in TypeSpec with decorators: 3. Add a tspconfig.yaml file: 4. Run the TypeSpec compiler: The emitter will generate Drizzle schema files in the output directory, plus JSON schemas for your models. Decorators Table Decorators @table(options?) Mark a model as a database table. Options: - name?: string - Cus","default_branch":null,"files":null,"tree":[],"storefront":"/r/omnidotdev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omnidotdev/typespec-drizzle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}