pub struct Cli {Show 25 fields
pub database: Option<PathBuf>,
pub config: Option<PathBuf>,
pub verbose: u8,
pub quiet: bool,
pub format: OutputFormat,
pub auto_detect: bool,
pub cassandra_version: Option<String>,
pub schema: Option<PathBuf>,
pub dataset: Option<String>,
pub data_dir: Option<PathBuf>,
pub execute: Option<String>,
pub file: Option<PathBuf>,
pub out: Option<OutputMode>,
pub output: Option<PathBuf>,
pub overwrite: bool,
pub limit: Option<usize>,
pub page_size: Option<usize>,
pub no_color: bool,
pub enable_select_fallback: bool,
pub writable: bool,
pub write_dir: Option<PathBuf>,
pub mutation: Vec<String>,
pub mutations_file: Option<PathBuf>,
pub flush: bool,
pub command: Option<Commands>,
}Fields§
§database: Option<PathBuf>Database file path
config: Option<PathBuf>Load config (TOML/YAML/JSON). Precedence: flags > env > file > defaults
verbose: u8Verbose output (-v, -vv, -vvv for increasing verbosity)
quiet: boolQuiet mode (suppress non-essential output)
format: OutputFormatOutput format
auto_detect: boolEnable best-effort auto detection (format/version) when available
cassandra_version: Option<String>Hint (e.g., 5.0) for format compatibility
schema: Option<PathBuf>CQL (.cql) or JSON (.json) schema files; triggers schema loading for ingestion. When combined with –data-dir, enables schema-aware query execution. Repeatable; order defines precedence
dataset: Option<String>Dataset name for test data (e.g., test_basic, test_collections) Mutually exclusive with –data-dir. Looks for datasets in CQLITE_DATASETS_ROOT/sstables/{dataset}/
data_dir: Option<PathBuf>Cassandra data directory root (e.g., /var/lib/cassandra/data). Combined with –schema, triggers dataset discovery and ingestion. Mutually exclusive with –dataset. For production Cassandra directory layouts.
execute: Option<String>Execute a single CQL statement in one-shot mode (alias: –query)
file: Option<PathBuf>Execute statements from a file (semicolon-terminated)
out: Option<OutputMode>Output format for query results. Takes precedence over –format when specified. Applies to: –execute/-e, –query, –file, and query subcommand. (table = cqlsh-compatible format)
output: Option<PathBuf>Output file path for query results. If not specified, output goes to stdout. Required when format is ‘parquet’ (binary format cannot be written to stdout).
overwrite: boolOverwrite output file if it exists (default: error if file exists)
limit: Option<usize>Cap rows
page_size: Option<usize>Reader and display pagination size
no_color: boolDisable colored output
enable_select_fallback: boolEXPERIMENTAL: Fallback to read-sstable for SELECT when ingestion unavailable (temporary, will be removed in M3)
writable: boolEnable write mode (requires –write-dir)
write_dir: Option<PathBuf>Directory for write operations (WAL and SSTable output)
mutation: Vec<String>JSON mutation to write (can be repeated). Requires –writable mode. Format: {“table”:“ks.tbl”,“partition_key”:{“col”:“val”},“operations”:[{“Write”:{“column”:“c”,“value”:“v”}}],“timestamp_micros”:123}
mutations_file: Option<PathBuf>File containing mutations (JSONL format, one JSON mutation per line). Requires –writable mode.
flush: boolForce flush memtable to SSTable after writes. Requires –writable mode.
command: Option<Commands>Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more