Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Java Driver for CovenantSQL

License

NotificationsYou must be signed in to change notification settings

CovenantSQL/cql-java-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CovenantSQL-Java-Connector is a Type 4 Java JDBC driver forCovenantSQL database querying.

Adding CovenantSQL-Java-Connector to your build

To add a dependency using Maven, use the following:

        <dependency>            <groupId>io.covenantsql</groupId>            <artifactId>cql-java-connector</artifactId>            <version>1.0.1</version>        </dependency>

To add a dependency using 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:

<dataSourcetype="POOLED">  <propertyname="driver"value="io.covenantsql.connector.CovenantDriver"/>  <propertyname="url"value="jdbc:covenantsql://${host}:${port}/${database}"/>  <propertyname="driver.key_path"value="${key_path}"/>  <propertyname="driver.cert_path"value="${cert_path}"/>  <propertyname="driver.sslmode"value="${sslmode}"/>  <propertyname="driver.ssl"value="${ssl}"/></dataSource>

Explanation:

  1. Useio.covenantsql.connector.CovenantDriver as the driver class.
  2. Replacehost variable with the adapter host address.
  3. Replaceport variable with the adapter port.
  4. Replacedatabase variable with the adapter.
  5. Replacekey_path variable with the https certificate private key path.
  6. Replacecert_path variable with the https certificate file path.
  7. Replacesslmode variable to use none/strict mode for https certificate check.
  8. Setssl variable to true/false to enable/disable https adapter connection.

You can see a runnable exampleHere.

About

Java Driver for CovenantSQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp