JDBC is a core API for Java 1.1 and later. It provides a standard set of interfaces to SQL-compliant databases.
This is a type 4 JDBC driver. The driver is written in pure Java, and communicates with the database using the PostgreSQL Wire Protocol.
The CrateDB JDBC driver requires Java 8, preferably update 20 or later. We recommend using Oracle’s Java on macOS and OpenJDK on Linux Systems.
Consult the compatibility notes for additional information.
These instructions show you how to build the CrateDB JDBC driver from the source code. For a conventional install (using pre-built JAR files) follow the getting started documentation.
Clone the repository:
$ git clone --recursive https://github.com/crate/crate-jdbc
Change directory into the repository:
$ cd crate-jdbc
Build a regular JAR file:
$ ./gradlew jar
Or, build a JAR file that includes dependencies:
$ ./gradlew standaloneJar
Afterwards you can find the JAR file in the build/lib
directory.
Note that building the JAR files requires your environment locale set to
UTF-8
.
This project is primarily maintained by Crate.io, but we welcome community contributions!
See the developer docs and the contribution docs for more information.
Looking for more help?
- Read the project docs
- Check out our support channels