Let's say we connect to some Cassandra cluster:
cqlengine.connection.setup('hostname', 'some_keyspace')
The method requires that we know at least one existing keyspace. What if we don't?
What if we simply wish to check if a keyspace exists and create it otherwise?
We could create a keyspace like this:
cqlengine.management.create_keyspace('keyspace_name', some_other_args)
So there are three questions here:
- How do you connect without supplying a keyspace?
- What is the correct way to create a new keyspace (what are the other arguments besides the name of the keyspace)?
- How do you switch keyspaces using cqlengine?