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

Function default

cassandra/cqlengine/connection.py:256–271  ·  view source on GitHub ↗

Configures the default connection to localhost, using the driver defaults (except for row_factory)

()

Source from the content-addressed store, hash-verified

254
255
256def default():
257 """
258 Configures the default connection to localhost, using the driver defaults
259 (except for row_factory)
260 """
261
262 try:
263 conn = get_connection()
264 if conn.session:
265 log.warning("configuring new default connection for cqlengine when one was already set")
266 except:
267 pass
268
269 register_connection('default', hosts=None, default=True)
270
271 log.debug("cqlengine connection initialized with default session to localhost")
272
273
274def set_session(s):

Callers

nothing calls this directly

Calls 2

get_connectionFunction · 0.85
register_connectionFunction · 0.85

Tested by

no test coverage detected