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

Ability to provide driver directly without closing connection when migrations are finished #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hgrubst
Copy link

@hgrubst hgrubst commented May 22, 2019

This PR provides the ability to provide a r driver directly instead of initializing a new one specifically for the migration process. It also adds the ability to not close the connection at the end of the process so that the specified driver can continue to be used.
Finally, if you pass in the same r driver multiple times, it will only wait for ready_for_writes once.

We have found this to be useful in our application where we apply migrations on startup across different areas of the app (eg call migrate multiple times) which was slowing down the app unnecessarily.

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

Successfully merging this pull request may close these issues.

1 participant