1.0.1 • Published 8 years ago

squel_cassandra v1.0.1

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

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

1.0.1

8 years ago

1.0.0

8 years ago