Skip to main content

USAGE

Constant USAGE 

Source
pub const USAGE: &str = "\
Usage: rudb [OPTIONS] [FILENAME [SQL...]]

An embedded analytical database, compatible with DuckDB.

FILENAME is the database to open. Only :memory: works today, because there is no storage format
yet. A second argument is SQL to run, after which the shell exits.

Options:
  -bail                  stop after the first error
  -batch                 read input as a script even when it is a terminal
  -c, -s SQL             run SQL and exit
  -cmd SQL               run SQL before reading input, and keep reading
  -echo                  print each statement before running it
  -f, -file FILENAME     run a file of SQL and exit
  -header, -noheader     turn column names on or off
  -init FILENAME         run a file of SQL before reading input
  -interactive           show a prompt even when input is not a terminal
  -newline SEP           what goes between rows in the separated modes
  -nullvalue TEXT        what a null prints as
  -readonly              open without allowing writes
  -separator SEP         what goes between values in the separated modes
  -version               print the version and exit
  --print-config         print the build configuration and exit
  -h, -help              print this and exit

Any mode can also be given as an option, so -csv is the same as -cmd '.mode csv'.
";
Expand description

What -help prints.