Repository navigation
Instantiate ConnectionPool with a DatabaseConfig rather than a ConnectionSpecification - #37253
Merged
Merged
Conversation
casperisfine
commented
Sep 20, 2019
Contributor
Author
There was a problem hiding this comment.
This is the main weirdness introduced by this refactor, since the spec_name is only available in ConnectionSpecification I'm forced to go through some inelegant hoops to properly set the connection_specification_name.
However I believe this is a just a temporary hack, and that it will be easy to clean it up once ConnectionSpecification is entirely gone.
Contributor
Author
There was a problem hiding this comment.
I don't think this test makes much sense anymore as we're trying to eliminate the "pool name".
casperisfine
force-pushed
the
connection-pool-db-config
branch
2 times, most recently
from
September 24, 2019 13:04
d0c9333 to
69bd199
Compare
…tionSpecification
casperisfine
force-pushed
the
connection-pool-db-config
branch
from
September 24, 2019 13:12
69bd199 to
48c716b
Compare
Member
|
This is great 😍 Thanks @casperisfine! |
imtayadeway
added a commit
to imtayadeway/activerecord-import
that referenced
this pull request
Oct 1, 2019
rails/rails#37253 changed the connection pool to pass in a database config instead of a specification - this updates the base importer to be compatible with both
This was referenced Jan 13, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This goes towards the goal we discussed of getting rid of
ConnectionSpecification, the main place it's used is for instantiatingConnectionPool.Most of this is a very straightforward change, except in a couple places that I'll explain in diff comments.
@eileencodes @seejohnrun @rafaelfranca @matthewd