Copyright 2012-2017 Hauser Olsson GmbH.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This is a JDBC implementation of the CrNiCKL (chronicle) database. CrNiCKL (pronounced "chronicle") is a database for time series written in Java running on top of SQL and NoSQL systems.
Versions 2.0.0 and 2.0.1 bring a non-compatible change in JDBCDatabase
. The
constructor now takes a second parameter: a ch.agent.t2.time.TimeDomainCatalog
.
The distribution consists of three archives
crnickl-jdbc-x.y.z.jar
crnickl-jdbc-x.y.z-javadoc.jar
crnickl-jdbc-x.y.z-sources.jar
with compiled classes, HTML documentation, and sources. The version number
x.y.z
follows the maven convention. The distribution also includes .asc
files with detached cryptographic signatures.
The software is available from the [Maven central repository<]
(http://repo.maven.apache.org/maven2/ch/agent/crnickl-jdbc/).
To use version x.y.z
, insert the following dependency into your pom.xml
file:
<dependency>
<groupId>ch.agent</groupId>
<artifactId>crnickl-jdbc</artifactId>
<version>x.y.z</version>
<scope>compile</scope>
</dependency>
The recommended way is to use git for accessing the source and maven for building. The procedure is easy, as maven takes care of locating and downloading dependencies:
$ git clone https://github.com/jpvetterli/crnickl-jdbc.git
$ cd crnickl-jdbc
$ mvn install
This builds and installs the distribution JARs in your local maven
repository. They can also be found in the target
directory.
When building the software by other means, the following dependencies must be addressed:
crnickl-x.y.z.jar
CrNiCKL databaset2-x.y.z.jar
Time2 Library
Replace all x.y.z
with the actual version numbers which can be found in the
POM
file included in the binary JAR:
/META-INF/maven/ch.agent/crnickl-jdbc/pom.xml
The following command runs unit tests:
$ mvn -Dmaven.test.skip=false test
When building the software without maven, the following additional dependencies must be addressed to compile unit tests:
hsqldb-<version>.jar
HyperSQL Databasesqltool-<version>.jar
HyperSQL Database
The source is available on GitHub.
More information on CrNiCKL is available at the project web site.
Updated: 2017-10-06/jpv.