I need to check if certain keyspace exists in Cassandra database. I need to write smth like this:
if (keyspace KEYSPACE_NAME not exists) create keyspace KEYSPACE_NAME;
There's a command describe keyspace, but can I somehow retrieve information from it in cql script?