-
Notifications
You must be signed in to change notification settings - Fork 46
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
Move to Database from Connection in Statement Implementations #67
Comments
@alexandru-slobodcicov I'm thinking that the Statement implementations could execute the 1: options can be specified in the migrations themselves and are passed through to the database directly. No need to manually add support for options that change over time. 2: Works with a larger set of underlying mongo-driver versions; increasing adoption of this library. Example:
Note that the current code doesn't support any options! Modified Code:
This is the strategy I used in PR #78 to add support for all options in the Finally there are currently two open issues (#71 and #80) relating to supporting the latest driver version. The signature of the Keen to hear your thoughts? Jason |
Hi @jsonking. Indeed worth changing where possible the Statemens to db.runCommand as you did for CreateCollectionStatement. Just want to mention that the initial approach was to stick to driver APIs until we identified that approximatively everything can be done from runCommand and adminCommand. The same is mentioned in README: A couple of Changes were implemented until identified that majority of the operations can be achieved using This particular issue is about having the Database instead of Connection in statements: |
In order to be closer to CustomChange implementations and have more generic Abstract Classes would be better to operate with Database Implementations instead of Connection Implementations passed to Statements/Executor etc.
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: