Expand description
DESCRIBE command implementations for cqlsh-rs.
Provides schema introspection commands matching Python cqlsh:
- DESCRIBE CLUSTER
- DESCRIBE KEYSPACES
- DESCRIBE KEYSPACE [name]
- DESCRIBE TABLES
- DESCRIBE TABLE
- DESCRIBE SCHEMA
- DESCRIBE FULL SCHEMA
- DESCRIBE INDEX
- DESCRIBE MATERIALIZED VIEW
- DESCRIBE TYPE
/ DESCRIBE TYPES - DESCRIBE FUNCTION
/ DESCRIBE FUNCTIONS - DESCRIBE AGGREGATE
/ DESCRIBE AGGREGATES
Structsยง
- MvDdl
Parts ๐ - Parts needed to format a CREATE MATERIALIZED VIEW DDL string.
Functionsยง
- describe_
aggregate ๐ - DESCRIBE AGGREGATE
โ show CREATE AGGREGATE statement. - describe_
aggregates ๐ - DESCRIBE AGGREGATES โ list all UDA names in the current keyspace.
- describe_
cluster ๐ - DESCRIBE CLUSTER โ show cluster name and partitioner.
- describe_
full_ ๐schema - DESCRIBE FULL SCHEMA โ show CREATE statements for ALL keyspaces (including system).
- describe_
function ๐ - DESCRIBE FUNCTION
โ show CREATE FUNCTION statement. - describe_
functions ๐ - DESCRIBE FUNCTIONS โ list all UDF names in the current keyspace.
- describe_
index ๐ - DESCRIBE INDEX
โ show CREATE INDEX statement. - describe_
keyspace ๐ - DESCRIBE KEYSPACE [name] โ show CREATE KEYSPACE statement.
- describe_
keyspaces ๐ - DESCRIBE KEYSPACES โ list all keyspace names.
- describe_
materialized_ ๐view - DESCRIBE MATERIALIZED VIEW
โ show CREATE MATERIALIZED VIEW statement. - describe_
schema ๐ - DESCRIBE SCHEMA โ show CREATE statements for all user keyspaces and their tables.
- describe_
schema_ ๐inner - Shared implementation for DESCRIBE SCHEMA and DESCRIBE FULL SCHEMA.
- describe_
table ๐ - DESCRIBE TABLE
โ show CREATE TABLE statement. - describe_
tables ๐ - DESCRIBE TABLES โ list tables in the current keyspace.
- describe_
type ๐ - DESCRIBE TYPE
โ show CREATE TYPE statement. - describe_
types ๐ - DESCRIBE TYPES โ list all UDT names in the current keyspace.
- execute
- Execute a DESCRIBE command and write output.
- extract_
map_ ๐value - Extract a value from a CQL map string like
{'key': 'value', ...}. - format_
create_ ๐aggregate_ ddl - Format a CREATE AGGREGATE DDL string.
- format_
create_ ๐function_ ddl - Format a CREATE FUNCTION DDL string.
- format_
create_ ๐mv_ ddl - Format a CREATE MATERIALIZED VIEW DDL string.
- format_
create_ ๐type_ ddl - Format a CREATE TYPE DDL string.
- format_
index_ ๐ddl - Format a CREATE INDEX DDL string.
- is_
system_ ๐keyspace - Check if a keyspace is a system keyspace.
- parse_
list_ ๐value - Parse a CQL list string like
['a', 'b', 'c']or[a, b, c]into a Vec of strings. - quote_
if_ ๐needed - Quote an identifier if it needs quoting (contains uppercase, spaces, or reserved words).
- resolve_
qualified_ ๐name - Resolve a potentially qualified name (ks.name or just name) into (keyspace, name).
- strip_
quotes ๐ - Strip surrounding single or double quotes from a string.
- write_
create_ ๐table - Write a CREATE TABLE statement for the given table metadata.