docs.rs failed to build arrow-flight-sql-client-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Arrow Flight SQL Client
flightsqlclient is a small command line app to query a Flight SQL server. You can find instructions to run such a server here: notes on running java FlightSqlExample.
Installation
Usage
When you run the app without arguments, you will be greeted with it's usage:
)
Listing the available tables can be done as following:
cargo run -- get-tables --hostname localhost --port 52358
+--------------+----------------+------------------+--------------+
| catalog_name | db_schema_name | table_name | table_type |
+--------------+----------------+------------------+--------------+
| | SYS | SYSALIASES | SYSTEM TABLE |
... (removed some lines to reduce output)
| | APP | FOREIGNTABLE | TABLE |
| | APP | INTTABLE | TABLE |
+--------------+----------------+------------------+--------------+
A query can be executed as following:
cargo run -- execute --query "select * from app.inttable order by value desc"
+----+--------------+-------+-----------+
| ID | KEYNAME | VALUE | FOREIGNID |
+----+--------------+-------+-----------+
| 1 | one | 1 | 1 |
| 2 | zero | 0 | 1 |
| 3 | negative one | -1 | 1 |
+----+--------------+-------+-----------+