GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CovenantSQL/cql-java-driver: Java Driver for CovenantSQL

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
connector
connector
 
 
example
example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

CovenantSQL-Java-Connector

CovenantSQL-Java-Connector is a Type 4 Java JDBC driver for CovenantSQL 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:

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

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.

About

Java Driver for CovenantSQL

Topics

connectordatabase-connectordriver

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.