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
- Host: GitHub
- URL: https://github.com/covenantsql/cql-java-driver
- Owner: CovenantSQL
- License: apache-2.0
- Created: 2018-08-24T06:01:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T18:18:20.000Z (over 4 years ago)
- Last Synced: 2025-06-17T05:02:43.506Z (7 months ago)
- Topics: connector, database-connector, driver
- Language: Java
- Homepage:
- Size: 18.1 MB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).