-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to support reflect with a dict of table names and database views #32
Comments
It looks like SQLAlchemy's reflect() method supports an For view, SQLAlchemy has a way to reflect views: http://docs.sqlalchemy.org/en/latest/core/reflection.html#reflecting-views |
Thanks for the info. Can you please provide an example of how to use the only parameter? I only have 1 database and when I pass a dictionary to the method of the table names, I get a message stating that the mapping is not available in SQLALCHEMY_BINDS object. Thanks, |
What's your code that produces the error? |
Thanks for the offer to help.
|
|
Oh.. stupid on my part.. I misread your previous response. Thanks. Greg |
Hello
Thanks for the work. It makes integrating SqlAlchemy into a custom framework a snap.
I have an existing database with some database views. I want to reflect the database to map the tables and the views in a dictionary.
Would I follow the Flask pattern and subclass the Manager class and override the needed methods?
Thanks
Greg
The text was updated successfully, but these errors were encountered: