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

Function _drop_keyspace

cassandra/cqlengine/management.py:142–145  ·  view source on GitHub ↗
(name, connection=None)

Source from the content-addressed store, hash-verified

140 raise ValueError('Connections must be a list or a tuple.')
141
142 def _drop_keyspace(name, connection=None):
143 cluster = get_cluster(connection)
144 if name in cluster.metadata.keyspaces:
145 execute("DROP KEYSPACE {0}".format(metadata.protect_name(name)), connection=connection)
146
147 if connections:
148 for connection in connections:

Callers 1

drop_keyspaceFunction · 0.85

Calls 2

get_clusterFunction · 0.90
executeFunction · 0.90

Tested by

no test coverage detected