Skip to main content

Crate uqa_cli

Crate uqa_cli 

Source
Expand description

usql: interactive REPL for UQA.

Reads SQL statements terminated by ; from stdin, runs each through uqa_engine::Engine, and prints the result rows in a plain aligned table. A handful of meta commands round out the REPL: \q to quit, \open <path> to switch to persistent storage, \new to drop back to an in-memory engine, \help for the full list. Designed for piped input as well: when stdin is not a terminal, we read every statement until EOF and exit.

Functionsยง

run_from_args
Run usql with explicit arguments excluding the executable name, using the standard streams.
run_from_env
Run usql with the current process arguments and standard streams.