Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
84 stars 12 forks source link

Derive FieldType for simple enums #72

Closed Electron100 closed 1 year ago

Electron100 commented 1 year ago

Support automatic deriving of FieldType for simple enums. The database representation is the string form of the variant name. This builds on the capability from #68

Fixes #20

Future work could allow an option to use discriminant value instead of name.

Electron100 commented 1 year ago

@jayvdb does this meet your needs for #20?