squel_cassandra
v1.0.1
Published
This repo is intended to serve as a plugin for Squel(>3) to support CQL(Cassandra Query Language)(>3.1) as it's specified [here](https://docs.datastax.com/en/cql/3.1/pdf/cql31.pdf)
Downloads
9
Readme
Cassandra Squel Flavour
This repo is intended to serve as a plugin for Squel(>3) to support CQL(Cassandra Query Language)(>3.1) as it's specified here
Installing
run npm install --save squel_cassandra
from your project root
Somewhere inside your app do:
require('squel_cassandra').registerFlavour();
const cassandraSquel = require('squel').useFlavour('cassandra');
API
This library registers a few custom types to make working with Squel+Cassandra easier:
- Long
- Array
- Uuid
- Map
- Date
SELECT
Added:
- ALLOW FILTERING
.allowFiltering()
INSERT
Added:
- USING OPTION
.option(name,value)
- IF NOT EXISTS
.ifNotExists
UPDATE
Added:
- USING OPTION
.option(name,value)
- IF EXISTS
.ifExists
Contributing
There's still a lot of unfinished work here, feel free to open PRs.
Just make sure the tests are running properly by doing npm test