Module create_keyspace

Module create_keyspace 

Source
Expand description

Parses a create keyspace query.

create_keyspace_statement: CREATE KEYSPACE [ IF NOT EXISTS ] `keyspace_name` WITH `options`

§Examples

CREATE KEYSPACE Excalibur
WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1' : 1, 'DC2' : 3}
AND durable_writes = true;
CREATE KEYSPACE Excelsior
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};

Structs§

CreateKeyspaceQuery

Enums§

ReplicationOption

Functions§

parse_create_keyspace