Overview of Clorinde's workflow
mainClorinde is a tool powered by rust-postgres that generates type-checked Rust interfaces from PostgreSQL queries. It ensures compile-time safety and high performance by preparing queries against an actual database and running a validation suite.
The standard workflow consists of three steps:
- Write your PostgreSQL queries.
- Generate a separate Rust crate containing type-safe interfaces to those queries using Clorinde.
- Import and use the generated crate within your main project.
Unlike other database interfaces, Clorinde generates plain Rust structs rather than relying on heavy macros or complex generics, making the generated code ergonomic and easy to extend.