-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Use mongodb driver directly? #526
Comments
Friendly ping to @wzrdtales 🙂 |
Thanks for bugging me :) The answer is: not yet really, but this was asked a few times already, i wouldn't be against such option, as this would be an equivalent to runSql. Do you want to give this a shot? |
And merry christmas btw. :) |
Merry Christmas to you too :) Could you point me to the correct place where an export would need to be added? I tried to dig into the new code but the new structure is a bit confusing to me 😄 |
For sure! Here you go edit the mongo driver: https://github.com/db-migrate/mongodb/blob/master/index.js#L10 When you add a new method that needs to be added to one of the interfaces, here is an example on how to do that: https://github.com/db-migrate/mysql/blob/master/index.js#L420 |
i saw that the functions are there and merged ... how do i use this feature now? like you discribed in your inital post? when i try
the db.driver is already undefined :( |
Use it like this:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
You could faced to migration terminating problem. Just close the dbDriver to avoid it.
|
Hi @wzrdtales sorry if I'm asking something that has already been posted - but I didn't find anything in the documentation or in the existing issues.
I wanted to ask if it is possible to use the mongodb driver directly? Like this for example:
The idea: I want to only update one property in one entry in the DB.
The reason: We have "base data" defined in our app that get's initialized (and updated) with every release. This base data needs maintenance and it would be awesome if maintenance could be done with
node-db-migrate
.Thanks for answering!
The text was updated successfully, but these errors were encountered: