The answer for another post says how to create a view. But all fields are generated dynamically:
class MyView(Base):
__table__ = view
And after we query it as below:
engine.execute(select([func.count('*')], from_obj=MyView)).scalar()
Is it possible to declare a view fields obviously? To I could query it as other entities:
my_views = MyView.query().all()
print(my_views[0].some_field)