seamless_database_pool icon indicating copy to clipboard operation
seamless_database_pool copied to clipboard

#raw_connection proxy to master_connection

Open TripWar opened this issue 8 years ago • 0 comments

Currently SDP returns nil for #raw_connection of the standard adapter. This makes it incompatible with gems like Upsert (https://github.com/seamusabshere/upsert) due to the fact that Upsert tries to grab the raw_connection so it can skip ActiveRecord when generating queries for the database.

It makes sense to me that the #raw_connection would return the master connection's raw_connection.

The test I wrote is pretty basic, but more than that, the forked gem works with the Upsert gem without any problems.

TripWar avatar Aug 14 '17 16:08 TripWar