Skip to content
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

Having multiple databases per app #1

Open
james-boswell opened this issue Apr 12, 2019 · 1 comment
Open

Having multiple databases per app #1

james-boswell opened this issue Apr 12, 2019 · 1 comment

Comments

@james-boswell
Copy link

I would like to propose to allow multiple databases per app. The official docs state it is advisable to have one database per app but I see no reason why this could not be configurable? Something like config.allowMultipleDatabases and then change db-factory.js as follows:

function DBFactory($q) {
  return function (config) {
    if (!_db || config.allowMultipleDatabases)
      _db = new DB($q, config);
    return _db;
  };
}

Interested in your thoughts on this.

@RobHawk90
Copy link
Owner

Hello James!
Thanks for your contribution, I'll try to update this feature.
You can pull request that if you wish too, would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants