Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

USE

Switch the current keyspace. This is a CQL statement handled by the database, but cqlsh-rs also updates the prompt and tab completion context.

Syntax

USE <keyspace>;

Usage

cqlsh> USE my_keyspace;
cqlsh:my_keyspace>

Notes

  • The prompt updates to show the current keyspace.
  • Tab completion for table names will use the current keyspace context.
  • Can also be set at startup with -k / --keyspace.