Method: MysqlFramework::Connector#with_client

Defined in:
lib/mysql_framework/connector.rb

#with_client(provided = nil) ⇒ Object

This method is called to use a client from the connection pool.



76
77
78
79
80
81
# File 'lib/mysql_framework/connector.rb', line 76

def with_client(provided = nil)
  client = provided || check_out
  yield client
ensure
  check_in(client) unless provided
end