Integrations
JAVA JDBC
Overview
Java Database Connectivity (JDBC) is an application programming interface (API) for the Java programming language which defines how a client may access a database. It is a Java-based data access technology used for Java database connectivity, which supports PostgreSQL protocol implemented in Oxla and provides consistent interface for accessing databases in Java or Kotlin. This page and its sections describe how to use Kotlin JDBC with Oxla and also lists unsupported functions and structures.
Establishing connection
Support for SSL/TLS is not mandated in the JDBC specification. So you cannot expect it in every driver.
Example usage
This example shows basic query execution, once the connection has been established:
Unsupported Functions & Structures
Here you can find a list of functions and potentially related structures, that we currently do not support when working with Oxla and Kotlin JDBC:
JDBC.Connection
, createArrayOfJDBC.Connection
, getTransactionIsolationJDBC.Connection
, prepareStatement with intArray (JDBC does not support)JDBC.Connection
, setSavepointJDBC.Connection
, setTransactionIsolationJDBC.ResultSet
, deleteRowJDBC.ResultSet
, insertRowJDBC.ResultSet
, refreshRowJDBC.ResultSet
, updateRowJDBC.ResultSet
, moveToCurrentRowJDBC.ResultSet
, moveToInsertRowJDBC.Statement
, RETURN_GENERATED_KEYSJDBC.Statement
, invalid autoGeneratedKeys (JDBC does not throw)JDBC.Statement
, execute witch intArray (JDBC does not support)JDBC.Statement
, cancel (issues after cancel)JDBC.PreparedStatement
, setDateJDBC.PreparedStatement
, setObjectJDBC.PreparedStatement
, setString(1, PGInterval(“1 day”).toString())