/crate-jdbc

A JDBC driver for CrateDB.

Primary LanguageJavaApache License 2.0Apache-2.0

CrateDB JDBC Driver

Test

A JDBC driver for CrateDB.

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.

Prerequisites

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.

Installation

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.

Contributing

This project is primarily maintained by Crate.io, but we welcome community contributions!

See the developer docs and the contribution docs for more information.

Help

Looking for more help?