The java program here provides simple JDBC operation tests for Peloton database.
To run the test:
-
Start peloton. Typically, locally, so hostname would be localhost and if default port would be 15721
-
Compile and run the test: test_jdbc.sh
e.g. test_jdbc.sh PelotonBasicTest localhost 15721
Where 'type' is one of: PelotonBasicTest PelotonErrorTest PelotonTypeTest StocklevelTest SSLTest
The program performs the following tests:
- Drop testing table if exsits.
- Create testing table.
- Insert a bunch of tuple using prepared statement.
- Index scan using prepared statement.