cornucopia-rs/cornucopia
View on GitHub ↗ ★ 1,169 Rust
Generate type-checked Rust from your PostgreSQL.
6 mentions on Hacker News by 5 people: 0 stories, 6 comments · first 2023-01-06 · latest 2024-09-24
20082026
-
…m/r/rust/comments/w54ydi/diesel_200_rc1... [2] https://github.com/Brendonovich/Prisma-Client-Rust [3] https://github.com/cornucopia-rs/cornucopia [4] https://old.reddit.com/r/rust/comments/wdos9x/cornucopia_v08...
comment by satvikpendem · 2024-09-24 · in One Year of Rust in Production -
https://github.com/cornucopia-rs/cornucopia Cornucopia generates rust code.
comment by 1ba9115454 · 2024-09-10 · in Sqlc: Compile SQL to type-safe code -
…is forgiging enough to not choke on that, then it seems completely fit for this use case. [0] https://github.com/cornucopia-rs/cornucopia [1] https://cornucopia-rs.netlify.app/book/writing_queries/writi...
comment by nextaccountic · 2024-02-02 · in We built our customer data warehouse all on Postgres -
Some examples for anyone else reading: Go: https://github.com/kyleconroy/sqlc Rust: https://github.com/cornucopia-rs/cornucopia This is my preferred method of interacting with databases now, if available. Very flexible.
comment by w7 · 2023-06-28 · in Is ORM still an anti-pattern? -
While we're on the subject of ORM's I really like the https://github.com/cornucopia-rs/cornucopia way of doing things. Basically write SQL in a file and code generate a function that runs the SQL for you and puts it into a struct (this one…
comment by ianpurton · 2023-02-26 · in Oops, You Wrote a Database -
The best solution I've ever seen is this Rust library https://github.com/cornucopia-rs/cornucopia You write plain SQL for you schema (just a schema.sql is enough) and plain SQL functions for your queries. Then it generates Rust types and…
comment by nextaccountic · 2023-01-06 · in Ask HN: ORM or Native SQL?