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

Method refresh_schema

cassandra/cluster.py:3783–3792  ·  view source on GitHub ↗
(self, force=False, **kwargs)

Source from the content-addressed store, hash-verified

3781 self._connection = None
3782
3783 def refresh_schema(self, force=False, **kwargs):
3784 try:
3785 if self._connection:
3786 return self._refresh_schema(self._connection, force=force, **kwargs)
3787 except ReferenceError:
3788 pass # our weak reference to the Cluster is no good
3789 except Exception:
3790 log.debug("[control connection] Error refreshing schema", exc_info=True)
3791 self._signal_error()
3792 return False
3793
3794 def _refresh_schema(self, connection, preloaded_results=None, schema_agreement_wait=None, force=False, **kwargs):
3795 if self._cluster.is_shutdown:

Calls 2

_refresh_schemaMethod · 0.95
_signal_errorMethod · 0.95

Tested by 1