How to get definition of Keyspace in Cassanda by using CQL - Cassandra / CQL Tutorial

How to get definition of Keyspace in Cassanda by using CQL

In previous posts, we have created the keyspaces and get the list of all of keyspaces by using below query. 
CQLSH:techbrotherstutorials>SELECT * FROM   system_schema.keyspaces;
Now if we would like to get the definition/create statement for keyspace we can use DESCRIBE. On CQL Shell type "DESCRIBE Keyspace_Name". It will return the create statement for keyspace.
CQLSH>describe keyspace_name;
If I would like to check the definition of TechBrothersTutorials Keyspace, my query will look like below.
CQLSH:techbrotherstutorials>describe techbrotherstutorials;

1 comment: