arrow_cli-0.5.0 is not a library.
arrow_cli
Overview
arrow_cli is a CLI tool for interacting with a server that speaks the Flight SQL protocol.
Install
Usage
> arrow_cli --help
Usage: arrow_cli [OPTIONS]
Options:
-u, --user <USER> User name [default: root]
-p, --password <PASSWORD> User password [default: ]
--host <HOST> Flight SQL Server host [default: 127.0.0.1]
-P, --port <PORT> Flight SQL Server port [default: 4100]
--tls
--timeout <TIMEOUT> Request timeout in seconds [default: 180]
--prepared Execute query using prepared statement
--print-schema Print resultset schema
--output <OUTPUT> Result output format [default: table] [possible values: table, json, csv, tsv, psv]
-c, --command <COMMAND> Execute SQL command and exit
-h, --help Print help
Examples
Single command with table output
| ) |
| |
)
Single command with JSON output
}
}
}
StdIn pipe with CSV output
|
StdIn pipe with TSV output
|
Single command with PSV output
|
|
|
Interactive session with JSON output
❯ arrow_cli -h arch -u sundy -p abc --port 8900 --output json
Welcome to Arrow CLI v0.4.1.
Connecting to http://arch:8900/ as user sundy.
arch :) select number from numbers(2);
select number from numbers(2);
{"number":0}
{"number":1}
arch :) exit
Bye
Features
- basic keywords highlight
- basic auto-completion
- select query support
- output formats: table, json, csv, tsv, psv
- delimited formats use: csv=
,, tsv=\t, psv=| - TBD