Peewee: Postgresql materialized views not showing

Created on 7 Jun 2020  路  2Comments  路  Source: coleifer/peewee

It seems Postgresql materialized views are not seen as a table or a view in Peewee. I have a model of a materialized view that works fine otherwise but Model.table_exists() returns False. If I try to find it in database.get_tables() or database.get_views() it does not appears anywhere. Is there a way to check if a materialized view model actually exists?

All 2 comments

I know how to use the pg_class table, "my dude", I was asking if this can be do directly in Peewee using its API. I won't be opening any more issues trying to improve Peewee since there doesn't seem to be an interest for it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MozzieHan picture MozzieHan  路  4Comments

mmongeon-aa picture mmongeon-aa  路  4Comments

GMaxera picture GMaxera  路  4Comments

hanxifu picture hanxifu  路  4Comments

mikemill picture mikemill  路  3Comments