kv / org.apache.tuweni.kv / SQLKeyValueStore / open

open

@JvmStatic fun open(jdbcUrl: String): SQLKeyValueStore (source)

Open a relational database backed key-value store.

Parameters

jdbcUrl - The JDBC url to connect to the database.

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store.

@JvmStatic fun open(jdbcUrl: String, tableName: String, keyColumn: String, valueColumn: String): SQLKeyValueStore (source)

Open a relational database backed key-value store.

Parameters

jdbcUrl - The JDBC url to connect to the database.

tableName - the name of the table to use for storage.

keyColumn - the key column of the store.

valueColumn - the value column of the store.

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store.