kristiandupont/kanel

`kanel-knex` doesn't generate imports for Materialized Views

MarloDelatorre opened this issue ยท 3 comments

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!

You are right, that looks like a bug! Thank you for informing me!

There's a new version published with this fix. Thank you!

No sir, thank you! ๐Ÿ˜„