Closed JenuelDev closed 2 months ago
To work with multiple databases on the same MySQL server, use the schema
attribute, e.g.:
class A(Model):
class Meta:
schema = 'db1'
class B(Model):
class Meta:
schema = 'db2'
This provides the additional layer of namespacing.
Example for model 1
example model 2
But when I do this, I am getting error:
But it is throwing error like:
although based on the model the account is connected to db 2