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

Support for enum types #28

Closed
AaronVasquez opened this issue Mar 13, 2018 · 3 comments
Closed

Support for enum types #28

AaronVasquez opened this issue Mar 13, 2018 · 3 comments

Comments

@AaronVasquez
Copy link

Is this supported?

@markbates
Copy link
Member

Depends on your definition of "supported", I guess. Any type you put into fizz will be passed through directly to the database if fizz doesn't know what to do with it. So it will work with any database type you give it. On the Go side you have to use a type that would support the database type you want to use. Does that help?

@AaronVasquez
Copy link
Author

Can you help guide me on how to use this with fizz:
https://www.postgresql.org/docs/10/static/functions-enum.html

@markbates
Copy link
Member

In that case just use a *.sql migration to create the enum type.

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

3 participants