`kanel-knex` doesn't generate imports for Materialized Views
MarloDelatorre opened this issue ยท 3 comments
MarloDelatorre commented
It generates the correct type declarations for Materialized Views, but it is missing the import lines for the Materialized Views
Looks like in type declarations code we access the different fields in schema
:
https://github.com/kristiandupont/kanel/blob/main/packages/kanel-knex/src/generateKnexTablesModule.ts#L132-L138
However, in the imports code we only access schema.views
:
https://github.com/kristiandupont/kanel/blob/main/packages/kanel-knex/src/generateKnexTablesModule.ts#L101-L107
Feel free to close if I am mistaken, thanks!
kristiandupont commented
You are right, that looks like a bug! Thank you for informing me!
kristiandupont commented
There's a new version published with this fix. Thank you!
MarloDelatorre commented
No sir, thank you! ๐