-
Notifications
You must be signed in to change notification settings - Fork 45
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
Materialized view columns #39
Comments
It would be a reasonable expectation, I just haven't gotten to it yet. Because materialized views are not part of the SQL specification, Postgres does not include information about them in the I'm not sure how soon I'll get to this myself. Of course, I'll be happy to review a PR for this 😁. |
I'll be happy to work on this. Let me test |
|
If you can implement this |
Yes I'm working on it. pg_attribute & information_schema.columns
Will comeback and update this. |
This might also helps: https://github.com/typeorm/typeorm/blob/master/src/driver/postgres/PostgresQueryRunner.ts |
Another place to look is in SQLBoiler. https://github.com/volatiletech/sqlboiler/blob/master/drivers/sqlboiler-psql/driver/psql.go#LL392C2-L485 While not expecting exactly the same columns, it is quite similar since Bob was heavily inspired by SQLBoiler. |
How's it going? @hiendaovinh |
Sorry, there's no further progress yet because I was kind of busy last week. Will come back this week sir. |
Hi,
With the given schema: https://github.com/stephenafamo/bob/blob/main/gen/bobgen-psql/driver/testdatabase.sql, I think it's reasonable to expect bob to generate
type_monsters_mv
columns just liketype_monsters_v
but it doesn't. Is it expected behavior?https://github.com/stephenafamo/bob/blob/main/gen/bobgen-psql/driver/psql.golden.json#L2228-L2238
Thank you.
The text was updated successfully, but these errors were encountered: