DESCRIBE SCHEMA
Shows definitions for all objects in the cluster.
On Linux systems, object names such as keyspace names, table names, and so forth are case-sensitive. By default, CQL converts names to lowercase unless enclosed in double quotation marks. |
Synopsis
DESCRIBE [ FULL ] SCHEMA
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. |
- FULL
-
Shows definitions for all objects.
- SCHEMA
-
Shows definitions for all non-system objects.
Examples
Shows definitions for all non-system objects:
DESC SCHEMA
This output shows the beginning of the returned results:
CREATE KEYSPACE dse_system_local WITH REPLICATION =
{'class': 'LocalStrategy'} AND durable_writes = true;
CREATE TABLE dse_system_local.solr_resources (
core_name text,
resource_name text,
resource_value blob,
PRIMARY KEY (core_name, resource_name)
) WITH CLUSTERING ORDER BY (resource_name ASC)
...