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

Function _execution_profile_to_string

cassandra/cluster.py:324–335  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

322
323
324def _execution_profile_to_string(name):
325 default_profiles = {
326 EXEC_PROFILE_DEFAULT: 'EXEC_PROFILE_DEFAULT',
327 EXEC_PROFILE_GRAPH_DEFAULT: 'EXEC_PROFILE_GRAPH_DEFAULT',
328 EXEC_PROFILE_GRAPH_SYSTEM_DEFAULT: 'EXEC_PROFILE_GRAPH_SYSTEM_DEFAULT',
329 EXEC_PROFILE_GRAPH_ANALYTICS_DEFAULT: 'EXEC_PROFILE_GRAPH_ANALYTICS_DEFAULT',
330 }
331
332 if name in default_profiles:
333 return default_profiles[name]
334
335 return '"%s"' % (name,)
336
337
338class ExecutionProfile(object):

Callers 2

add_execution_profileMethod · 0.85
get_execution_profileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected