Scassandra CQL antlr

CQL Types

License

License

Categories

Categories

Ant Build Tools Cassandra Data Databases ANTLR Compiler-compiler
GroupId

GroupId

org.scassandra
ArtifactId

ArtifactId

cql-antlr
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

Scassandra CQL antlr
CQL Types
Project URL

Project URL

https://github.com/chbatey/cql-antlr
Source Code Management

Source Code Management

https://github.com/scassandra/scassandra-server

Download cql-antlr

How to add to project

<!-- https://jarcasting.com/artifacts/org.scassandra/cql-antlr/ -->
<dependency>
    <groupId>org.scassandra</groupId>
    <artifactId>cql-antlr</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.scassandra/cql-antlr/
implementation 'org.scassandra:cql-antlr:1.1.2'
// https://jarcasting.com/artifacts/org.scassandra/cql-antlr/
implementation ("org.scassandra:cql-antlr:1.1.2")
'org.scassandra:cql-antlr:jar:1.1.2'
<dependency org="org.scassandra" name="cql-antlr" rev="1.1.2">
  <artifact name="cql-antlr" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.scassandra', module='cql-antlr', version='1.1.2')
)
libraryDependencies += "org.scassandra" % "cql-antlr" % "1.1.2"
[org.scassandra/cql-antlr "1.1.2"]

Dependencies

compile (4)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.10
com.google.guava : guava jar 17.0
commons-codec : commons-codec jar 1.10
org.antlr : antlr4-runtime jar 4.5

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
ch.qos.logback : logback-classic jar 1.1.1
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

Scassandra - Making testing Apache Cassandra easy

Migrating to Version 1.*

A few minor changes in the API:

Java client:

  • All deprecated methods have been removed
  • Result has become a top level class
  • Consistency has become at top level class

HTTP JSON API:

  • No breaking changes

TravisCI Gitter

Supports Apache Cassandra Protocol Versions 1 through 4.

Datastax Java 3.x and 2.x support.

Stubbed Cassandra runs as a separate process that your application will believe is a real Cassandra node. It does this by implementing the server side of the binary protocol. It allows you to create scenarios like read time outs, write time outs and unavailable exceptions so you can test your application.

See web site for documentation.

Contributing

We'd love to have more contributors so get stuck in!

The whole project is built and tested with gradle. Imports into IntelliJ (Scala plugin required) without any extra config.

To run all tests:

sbt test

It is made up of:

  • cql-antlr - parses cql types using an antlr4 grammar.
  • codec - parses Apache Cassandra's native protocol using scodec.
  • server - accepts requests over the native protocol and priming over JSON/HTTP. Written in Scala
  • java-client - wrapper for starting the sever in the same JVM as unit/integration tests and a Java API for the priming endpoinds
  • java-it-tests - integration tests against multiple versions of the DataStax Java driver

For any features you add please make them available in the Java client. All communication between the Java Client and the server is over HTTP.

Beware that there are deprecation warnings in the integration tests. Don't fix these as I still want to test deprecated APIs.

We're in the process or moving back to SBT for cross compilation. Things that need finished:

  • Releasing
  • Pushing to maven central
  • License headers

PR guidelines

  • Squash your commits so that each commit is fully functional and passes all tests, including any new API exposed via the Java client
  • Any format changes please put in a separate commit
  • All features should be unit tested in the server and have an integration test
  • Add docs for any new features
org.scassandra

Scassandra

Developing Cassandra test tools

Versions

Version
1.1.2
1.1.1
1.1.0
0.1.1
0.1.0