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.
I created a view using PostgreSQL's CREATE VIEW that combines multiple tables in a migration. However it appears that when running
pg-schemait does not know that the view even exists and no types are generated.A
VIEWbehaves very similarly to aTABLE, 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 aVIEWas is already generated for aTABLE.