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

[pg-schema-cli] Support for generating schema of VIEWs #322

Open
dantman opened this issue Mar 19, 2024 · 0 comments
Open

[pg-schema-cli] Support for generating schema of VIEWs #322

dantman opened this issue Mar 19, 2024 · 0 comments

Comments

@dantman
Copy link

dantman commented Mar 19, 2024

I created a view using PostgreSQL's CREATE VIEW that combines multiple tables in a migration. However it appears that when running pg-schema it does not know that the view even exists and no types are generated.

A VIEW behaves very similarly to a TABLE, responding to the same types of SELECT queries (and possibly UPDATE), so it would be quite helpful if the same type of TypeScript interface was generated for a VIEW as is already generated for a TABLE.

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