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

Method _get_connection

cassandra/pool.py:414–422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

412 log.debug("Finished initializing connection for host %s", self.host)
413
414 def _get_connection(self):
415 if self.is_shutdown:
416 raise ConnectionException(
417 "Pool for %s is shutdown" % (self.host,), self.host)
418
419 conn = self._connection
420 if not conn:
421 raise NoConnectionsAvailable()
422 return conn
423
424 def borrow_connection(self, timeout):
425 conn = self._get_connection()

Callers 7

borrow_connectionMethod · 0.95
_sync_tableFunction · 0.80
_drop_tableFunction · 0.80
_get_partition_keysMethod · 0.80
_executeMethod · 0.80
_executeMethod · 0.80
_execute_statementFunction · 0.80

Calls 2

ConnectionExceptionClass · 0.90

Tested by

no test coverage detected