cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

`TryFrom` for Postgres Enumerated Types #229

Open HTGAzureX1212 opened 7 months ago

HTGAzureX1212 commented 7 months ago

Postgres enumerated types are essentially string types with designated values. It would be a good idea if cornucopia implemented the TryFrom trait for these enumerated types such that they can be constructed easily.