Configuration

The TileDB Cloud JDBC library can be configured programmatically in your Java code. The configuration options include:

  • apiKey(String): Your TileDB-Cloud API Token. (recommended)

  • username(String): Your TileDB-Cloud username

  • password(String): Your TileDB-Cloud password

  • rememberMe(boolean): Whether the JDBC driver will remeber your login credentials in the future.

  • verifySSL(boolean): Whether the JDBC driver will use SSL

  • overwritePrevious(boolean): Whether the JDBC driver will overwrite existing credentials. This option can be combined with rememberMe.

Here's an example of configuring the driver where NAMESPACE is your TileDB-Cloud namespace

Properties properties  = new Properties();
properties.setProperty("apiKey", "KEY");
properties.setProperty("rememberMe", "true");

Connection conn = DriverManager.getConnection("jdbc:tiledb-cloud:<NAMESPACE>", properties);

You can also include your API Token in the connection String like this:

Connection conn = DriverManager.getConnection("jdbc:tiledb-cloud:<NAMESPACE>:<API_TOKEN>", properties);

Last updated