ScalarDB JDBC Guide
The usage of ScalarDB JDBC basically follows Java JDBC API. This guide describes several important topics that are specific to ScalarDB JDBC.
JDBC connection URL
The JDBC connection URL format of ScalarDB JDBC is as follows:
jdbc:scalardb:<configuration file path>?<property name>=<property value>&<property name>=<property value>&...
For example:
Only specify configuration file path:
jdbc:scalardb:/path/to/database.properties
Only specify properties:
jdbc:scalardb:?scalar.db.contact_points=localhost&scalar.db.username=cassandra&scalar.db.password=cassandra&scalar.db.storage=cassandra
Specify configuration file path and properties:
jdbc:scalardb:/path/to/database.properties?scalar.db.metadata.cache_expiration_time_secs=0