What is Cornucopia?
mainCornucopia is a code generation tool that creates type-checked Rust interfaces from PostgreSQL queries. It is powered by rust-postgres and focuses on compile-time safety and high performance.
Unlike libraries that rely heavily on complex macros or generics at runtime, Cornucopia prepares your queries against an actual database to validate them and then generates plain Rust structs into a separate crate. This makes the generated code ergonomic, easy to understand, and easy to extend.