{"repo":"cornucopia-rs/cornucopia","free":true,"listed":false,"github":"https://github.com/cornucopia-rs/cornucopia","clone":"git clone https://github.com/cornucopia-rs/cornucopia.git","description":"Generate type-checked Rust from your PostgreSQL.","language":"Rust","stars":1125,"topics":["postgres","postgresql","rust","sql","database"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Cornucopia Generate type-checked Rust from your SQL [!NOTE] Cornucopia 1.0 merged the Clorinde fork back into the original project, adopting its rewritten codegen, expanded capabilities, and accumulated fixes. Huge thanks to @beanpuppy and the Clorinde contributors for their work. If you are upgrading from Cornucopia 0.9.x , see the migration guide. Cornucopia generates type-checked Rust interfaces from PostgreSQL queries, with an emphasis on compile-time safety and high performance. It works by preparing your queries against an actual database and then running an extensive validation suite on them. Rust code is then generated into a separate crate, which can be imported and used in your project. The basic premise is thus to: 1. Write your PostgreSQL queries. 2. Use Cornucopia to generate a crate with type-safe interfaces to those queries. 3. Import and use the generated code in your project. You can learn more about Cornucopia by reading the book, or you can get a quickstart by looking at the examples. Key Features - Type Safety - Catch SQL errors at compile time with powerful diagnostics. - SQL-First - Write plain SQL queries, get generated Rust code. No ORMs or query builders, just the SQL you know and love. - Fast - Performance close to hand-written rust-postgres code. - Flexible - Works with sync/async code and connection pools. - PostgreSQL Native - Full support for custom types, enums, and arrays. Leverage PostgreSQL's advanced features without compromise. - Custom Typ","default_branch":null,"files":null,"tree":[],"storefront":"/r/cornucopia-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cornucopia-rs/cornucopia/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."}