influxdb/influxdb_iox/tests/jdbc_client
Andrew Lamb 7853a19953
feat: JDBC integration tests with FlightSQL (#6693)
* feat: basic JDBC integration test

* fix: do not run test without env set

* docs: add maven link

* refactor: clean up java with switch statement
2023-01-25 22:21:18 +00:00
..
.gitignore feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
Main.java feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
Makefile feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
README.md feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
flight-sql-jdbc-driver-10.0.0.jar.sha feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
jdbc_client feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00

README.md

This directory contains a JDBC client program that is used for testing InfluxBD IOx using the FlightSQL JDBC driver

Local Execution:

Run IOx

influxdb_iox -v

Run the JDBC test

To run the JDBC test program, specify the target namespace in the JDBC URL:

# run the jdbc client driver program, downloading the JDBC driver if needed
./jdbc_client "jdbc:arrow-flight-sql://localhost:8082?useEncryption=false&iox-namespace-name=26f7e5a4b7be365b_917b97a92e883afc" query 'select * from cpu'

Cleanup:

Clean up any intermediate files (like JDBC driver)

make clean