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

Function _pk_string

cassandra/cqlengine/management.py:299–300  ·  view source on GitHub ↗
(partition, clustering)

Source from the content-addressed store, hash-verified

297
298 if model_partition != meta_partition or model_clustering != meta_clustering:
299 def _pk_string(partition, clustering):
300 return "PRIMARY KEY (({0}){1})".format(', '.join(partition), ', ' + ', '.join(clustering) if clustering else '')
301 raise CQLEngineException("Model {0} PRIMARY KEY composition does not match existing table {1}. "
302 "Model: {2}; Table: {3}. "
303 "Update model or drop the table.".format(model, model.column_family_name(),

Callers 1

_validate_pkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected