An open API service indexing awesome lists of open source software.

https://github.com/covenantsql/cql-java-driver

Java Driver for CovenantSQL
https://github.com/covenantsql/cql-java-driver

connector database-connector driver

Last synced: 7 months ago
JSON representation

Java Driver for CovenantSQL

Awesome Lists containing this project

README

          

# CovenantSQL-Java-Connector

CovenantSQL-Java-Connector is a Type 4 Java JDBC driver for [CovenantSQL](https://covenantsql.io) database querying.

## Adding CovenantSQL-Java-Connector to your build

To add a dependency using Maven, use the following:

```xml

io.covenantsql
cql-java-connector
1.0.1

```

To add a dependency using Gradle:

```gradle
repositories {
maven {
url 'https://raw.github.com/CovenantSQL/cql-java-driver/mvn-repo'
}
}

dependencies {
compile 'io.covenantsql:covenantsql-java-connector:1.0-SNAPSHOT'
}
```

## Use CovenantSQL-Java-Connector with MyBatis

Configure the dataSource like the following example:

```xml






```

Explanation:
1. Use `io.covenantsql.connector.CovenantDriver` as the driver class.
2. Replace `host` variable with the adapter host address.
3. Replace `port` variable with the adapter port.
4. Replace `database` variable with the adapter.
5. Replace `key_path` variable with the https certificate private key path.
6. Replace `cert_path` variable with the https certificate file path.
7. Replace `sslmode` variable to use none/strict mode for https certificate check.
8. Set `ssl` variable to true/false to enable/disable https adapter connection.

You can see a runnable example [Here](./example/src/main/java/io/covenantsql/connector/example/mybatis).