We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If we define a connection value in custom model definition it isn't overrided in runtime:
class User(Model): __connection__ = 'sqlite'
I think is that in Model class point out always to default connection.
class Model(metaclass=ModelMeta): __connection__ = 'default'
if 'default' key is point to mysql then connection to User model will use the mysql even if the __connection__ is set to sqlite
mysql
User
__connection__
sqlite
The text was updated successfully, but these errors were encountered:
Bad configuration. Is working.
Sorry, something went wrong.
No branches or pull requests
If we define a connection value in custom model definition it isn't overrided in runtime:
I think is that in Model class point out always to default connection.
if 'default' key is point to
mysql
then connection toUser
model will use the mysql even if the__connection__
is set tosqlite
The text was updated successfully, but these errors were encountered: