# File lib/dm-core/adapters/data_objects_adapter.rb, line 143 def create_connection if within_transaction? current_transaction.primitive_for(self).connection else # DataObjects::Connection.new(uri) will give you back the right # driver based on the Uri#scheme. DataObjects::Connection.new(@uri) end end