Skip to main content

Module cli

Module cli 

Source
Expand description

User-facing command-line frontend for Basalt.

The SQL engine stays independent of frontend concerns, so the CLI keeps its argument parsing, SQL buffering, result formatting, and meta commands in this module. Keeping the frontend testable outside the executable makes script and interactive behavior share the same connection semantics.

Structs§

CliError
CliOptions

Enums§

InputAction
OutputMode

Constants§

HELP
MAX_SQL_INPUT_BYTES
Maximum SQL source accepted by one CLI action or the interactive buffer.

Functions§

parse_args
Parse command-line arguments after the executable name.
run
Run either the requested commands/scripts or the interactive shell.