MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / _validate_set_legacy_config

Method _validate_set_legacy_config

cassandra/cluster.py:3465–3469  ·  view source on GitHub ↗
(self, attr_name, value)

Source from the content-addressed store, hash-verified

3463 return self._pools.values()
3464
3465 def _validate_set_legacy_config(self, attr_name, value):
3466 if self.cluster._config_mode == _ConfigMode.PROFILES:
3467 raise ValueError("Cannot set Session.%s while using Configuration Profiles. Set this in a profile instead." % (attr_name,))
3468 setattr(self, '_' + attr_name, value)
3469 self.cluster._config_mode = _ConfigMode.LEGACY
3470
3471
3472class UserTypeDoesNotExist(Exception):

Callers 4

row_factoryMethod · 0.95
default_timeoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected