SweetIQ / schemats

Generate typescript interface definitions from SQL database schema
https://www.npmjs.com/package/schemats
MIT License
1.03k stars 103 forks source link

Materialized view schema type definitions #66

Open chazclark opened 7 years ago

chazclark commented 7 years ago

Is there a way to generate materialized view schema type definitions? I know it does this for normal views, yet I don't see the output for materialized views.

xiamx commented 7 years ago

Not possible with the current version. But it shouldn't be difficult to implement https://stackoverflow.com/questions/39179253/postgresql-get-materialized-view-column-metadata

Pull requests are welcomed :)

mhuconcern commented 4 years ago

@xiamx Has there been any pull request out for this. If so how do we use it

mhuconcern commented 4 years ago

I moved to slonik It has a typegen package that is actively maintained