DESCRIBE KEYSPACES / DESCRIBE KEYSPACE
Shows a list of all keyspaces in the cluster or definition of each object in a specified keyspace.
-
DESCRIBE KEYSPACES
lists all the current keyspaces. -
DESCRIBE KEYSPACE <keyspace_name>
contains the full details of the keyspace, including all database objects the keyspace contains.
The output includes all settings for tables and other objects including the default settings. To recreate a keyspace in another environment, verify that the keyspace replication factor and datacenter names are compatible. |
Synopsis
DESCRIBE KEYSPACES | KEYSPACE <keyspace_name>
Syntax legend
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
|
Variable value. Replace with a user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
Set, list, map, or tuple.
Angle brackets ( |
|
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrConfig files. |
Parameters
Parameter | Description |
---|---|
|
Name of the keyspace |
Examples
Detailed examples are provided in Checking a keyspace.