Skip to content
New issue

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

Serialize/Deserialize enums as text #1001

Open
dxnxk-0 opened this issue Feb 24, 2023 · 0 comments
Open

Serialize/Deserialize enums as text #1001

dxnxk-0 opened this issue Feb 24, 2023 · 0 comments

Comments

@dxnxk-0
Copy link

dxnxk-0 commented Feb 24, 2023

Hi, the current default behaviour requires creating the enums on the postgres side.

I think this is tedious because it requires additional boilerplate, and it is always possible to forget to declare new enums on the postgres side and end up with a runtime bug in production.

Is there any way to simply serialize/deserialize enums from/to text without doing it explicitly in the FromRow implementation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant