Class: Familia::Connection::CreateConnectionHandler
- Inherits:
-
BaseConnectionHandler
- Object
- BaseConnectionHandler
- Familia::Connection::CreateConnectionHandler
- Defined in:
- lib/familia/connection/handlers.rb
Overview
Creates new connections directly, with no caching of any kind. If the make it to here in the chain, it'll create a new connection every time.
Fresh connection each time - all operations safe (transactions, pipelined, ad-hoc)
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from Familia::Connection::BaseConnectionHandler
Instance Method Details
#handle(uri) ⇒ Object
86 87 88 89 90 91 92 |
# File 'lib/familia/connection/handlers.rb', line 86 def handle(uri) # Create new connection (no module-level caching) parsed_uri = @familia_module.normalize_uri(uri) client = @familia_module.create_dbclient(parsed_uri) Familia.trace :DBCLIENT_DEFAULT, nil, "Created new connection for #{parsed_uri.serverid}" client end |