MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / get_connection

Function get_connection

cassandra/cqlengine/connection.py:242–253  ·  view source on GitHub ↗
(name=None)

Source from the content-addressed store, hash-verified

240
241
242def get_connection(name=None):
243
244 if not name:
245 name = DEFAULT_CONNECTION
246
247 if name not in _connections:
248 raise CQLEngineException("Connection name '{0}' doesn't exist in the registry.".format(name))
249
250 conn = _connections[name]
251 conn.handle_lazy_connect()
252
253 return conn
254
255
256def default():

Callers 5

defaultFunction · 0.85
set_sessionFunction · 0.85
executeFunction · 0.85
get_sessionFunction · 0.85
get_clusterFunction · 0.85

Calls 2

CQLEngineExceptionClass · 0.90
handle_lazy_connectMethod · 0.80

Tested by

no test coverage detected