Module completer

Module completer 

Source
Expand description

Tab completion for the CQL shell.

Implements rustyline’s Completer, Helper, Hinter, Highlighter, and Validator traits to provide context-aware tab completion in the REPL. Completions include CQL keywords, shell commands, schema objects (keyspaces, tables, columns), consistency levels, DESCRIBE sub-commands, and file paths.

StructsΒ§

CqlCompleter
Tab completer for the CQL shell REPL.

EnumsΒ§

CompletionContext πŸ”’
Detected completion context based on the input up to the cursor.

ConstantsΒ§

CONSISTENCY_LEVELS πŸ”’
CQL consistency levels.
CQL_CLAUSE_KEYWORDS πŸ”’
CQL clause keywords used within statements.
CQL_KEYWORDS πŸ”’
CQL keywords that can start a statement.
CQL_TYPES πŸ”’
CQL data types for CREATE TABLE column definitions.
DESCRIBE_SUB_COMMANDS πŸ”’
DESCRIBE sub-commands.
SHELL_COMMANDS πŸ”’
Built-in shell commands.

FunctionsΒ§

complete_file_path πŸ”’
Complete file paths for SOURCE and CAPTURE commands.
filter_candidates πŸ”’
Filter candidates by prefix, returning matching Pairs.