cornucopia icon indicating copy to clipboard operation
cornucopia copied to clipboard

Generate type-checked Rust from your PostgreSQL.

Results 78 cornucopia issues
Sort by recently updated
recently updated
newest added

Is it possible to implement some kind of type hints for generated types? Something like this: ``` --: Author(age?:MyDateTime) ```

question

I am exploring using a lightweight solution using a trait : ```rs pub trait StringSql: std::fmt::Debug + ToSql + Sync {} impl StringSql for String {} impl StringSql for &str...

### Discussed in https://github.com/cornucopia-rs/cornucopia/discussions/139 Originally posted by **skreborn** August 4, 2022 At the moment, it's difficult to provide container types such as wrappers (`Option`) and collections (`Vec`) as bound parameters,...

enhancement

This is an experimental PR showing how the soon-to-be-stabilised[GAT](https://github.com/rust-lang/rust/pull/96709) feature can help us generate less code.

Right now there's no way to perform multi-inserts. That means we have to call this ```sql INSERT INTO table(...) VALUES (...) ``` multiple times, instead of calling that ```sql INSERT...

feature
performance

`cargo add` is now part of cargo. https://doc.rust-lang.org/cargo/commands/cargo-add.html So it would be nice to be able to run `cargo add cornucopia` and that's it. It may mean simplifying the current...

feature
dependencies
breaking

Sorry for not adding any unit tests, stressful days. Think of this as a reminder for the time being. It seems to be working though.

Add support for rust reserved keywords everywhere we can escape them. To achieve this we have to use an even more custom implementation of `ToSql` and `FromSql` traits, and we...

I was working on the train today and docker failed due to an unstable network. I found that our program was hiding the origin of the error and our help...

Copied from the Discord channel: I think that changes to `src/cornucopia.rs` should be reproducible no matter which developer machine it's run on. To achieve this my suggestion is that: 1....

feature
breaking
configuration