Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upobject has no attribute 'drivername' if using only binds, not default DB #819
Comments
I'd like to see a little more information. |
Hi, here is an example of a model with the bind key set. All of my models have a bind key set for either one DB or another.
|
Expected Behavior
I have a flask project with two binds set in
SQLALCHEMY_BINDS
and withSQLALCHEMY_DATABASE_URI
not specified. I would like this to work as long as__bind_key__
is properly specified for each model. I don't want to have a default DB, as I think that might lead to mistakes.Actual Behavior
It attempts to call
apply_driver_hacks
withsa_url = None
. How can I preventapply_driver_hacks
from being called whenSQLALCHEMY_DATABASE_URI
is not set?Environment