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 enums #54

Closed
silasdavis opened this issue May 5, 2020 · 0 comments · Fixed by #59
Closed

Support enums #54

silasdavis opened this issue May 5, 2020 · 0 comments · Fixed by #59

Comments

@silasdavis
Copy link
Contributor

This seems like the most obvious/useful place to start with types that need to be pulled in from Postgres. Enum types and their values need to be read from the Postgres catalog and passed along as additional types from getTypes in the query package. These types can be merged in with the type mapping in #51 which can generate a corresponding typescript enum declaration as a TypeAlias and output that in the header of the generated file.

A similar approach can probably be used for composite types.

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

Successfully merging a pull request may close this issue.

1 participant