We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename_all
A Postgres type like so
CREATE TYPE mood AS ENUM ('sad', 'happy');
can be represented like this
#[derive(ToSql, Debug)] #[postgres(name = "mood")] enum Mood { #[postgres(name = "sad")] Sad, #[postgres(name = "happy")] Happy }
This is a request for a container attribute like Serde's rename_all [1]
#[derive(ToSql, Debug)] #[postgres(rename_all = "lowercase")] enum Mood { Sad, Happy }
What do you think?
-- #894 related
The text was updated successfully, but these errors were encountered:
Seems like a reasonable feature to me!
Sorry, something went wrong.
FromSql
ToSql
@allan2 @sfackler I made an attempt at an initial implementation in #952. Feedback would be welcome!
Closing because merged in #1008 and released in postgres-types 0.2.6. Thanks @JaydenElliott @sfackler!
No branches or pull requests
A Postgres type like so
can be represented like this
This is a request for a container attribute like Serde's
rename_all
[1]What do you think?
--
#894 related
The text was updated successfully, but these errors were encountered: