The proxy to a remote database connection
Default tcp port to listen on
A simple Hash to hold Session object Purpose: preventing them from being garbage collected when they are only referenced through Drb
Create a ProxyConnection according to provided configuration Hash. config is a hash as described by ActiveRecord::Base#establish_connection
# File lib/rubyrep/database_proxy.rb, line 28 def create_session(config) session = ProxyConnection.new config self.session_register[session] = session session end
Destroys the given session from the session register
# File lib/rubyrep/database_proxy.rb, line 35 def destroy_session(session) session.destroy session_register.delete session end
Generated with the Darkfish Rdoc Generator 2.