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

Add default value in config for default database to use for all queries #4

Open
jacurtis opened this issue Oct 2, 2017 · 0 comments
Assignees
Milestone

Comments

@jacurtis
Copy link
Contributor

jacurtis commented Oct 2, 2017

Most of the time you will not be switching databases often, so defining a default database to use would make this much easier to use.

Of course we still need to be able to override this value if a user is using the non-default database.

My thoughts are to create a setting in config/mongo.php which is default_database and that will be set on the __construct() method as the assumed database to use unless set.

@jacurtis jacurtis self-assigned this Oct 2, 2017
@jacurtis jacurtis added this to the v1.1.0 milestone Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant