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

Function _execute_statement

cassandra/cqlengine/query.py:1522–1532  ·  view source on GitHub ↗
(model, statement, consistency_level, timeout, connection=None)

Source from the content-addressed store, hash-verified

1520
1521
1522def _execute_statement(model, statement, consistency_level, timeout, connection=None):
1523 params = statement.get_context()
1524 s = SimpleStatement(str(statement), consistency_level=consistency_level, fetch_size=statement.fetch_size)
1525 if model._partition_key_index:
1526 key_values = statement.partition_key_values(model._partition_key_index)
1527 if not any(v is None for v in key_values):
1528 parts = model._routing_key_from_values(key_values, conn.get_cluster(connection).protocol_version)
1529 s.routing_key = parts
1530 s.keyspace = model._get_keyspace()
1531 connection = connection or model._get_connection()
1532 return conn.execute(s, params, timeout=timeout, connection=connection)

Callers 2

_executeMethod · 0.85
_executeMethod · 0.85

Calls 7

SimpleStatementClass · 0.90
_get_keyspaceMethod · 0.80
_get_connectionMethod · 0.80
get_contextMethod · 0.45
partition_key_valuesMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected