reines / db-table

A Guava table implementation backed by JDBI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DB Table

Build Status Maven Central

DB Table is an implementation of the Guava Table interface, backed by JDBI. It is designed and tested against the Java SQL database H2, though with some minor dialect tweaks should work on any supported by JDBI.

DB Table can be found in maven central.

Installation

<dependency>
    <groupId>com.jamierf.db-table</groupId>
    <artifactId>db-table-jackson</artifactId>
    <version>...</version>
</dependency>

Usage

final Handle handle = DBI.open("jdbc:h2:example.db");
final Table<String, String, String> table = new JacksonDbTableBuilder(handle)
    .build("table_name", String.class, String.class, String.class);
table.put("row", "column", "value");

License

Released under the Apache 2.0 License.

About

A Guava table implementation backed by JDBI

License:Apache License 2.0


Languages

Language:Java 100.0%