search for: connectionstored

Displaying 1 result from an estimated 1 matches for "connectionstored".

2006 Jan 18
1
Helps!!!!! Rails database connection guru needed!!!!!!!
...establish_connection 3- ActiveRecord::base.postgresql_connection(config) 4- ConnectionAdapters::PostgreSQLAdapter.new( PGconn.connect(), logger ) 5- connection_specification.establish_connection @@defined_connections[self] = spec The connection is made while Rails calls PGconn.connect(), then the connectionstored in @connection of the adapter class. while a request is send to the adapter,the adapter will sends the request to the database via its variable @connection.But where exactly the disconnection is done while we connect ourself to another database???? As we can see in the source code "remove_conn...