SIQL
Siphon.IO Query Language (pronounced like "cycle")
Overview
This module allows for programmatic transformation and usage of SIQL queries. SIQL is a query language based on JSON used to interact with various siphon.io services.
Installation
Available via npm:
$ npm install siql
Or via git:
$ git clone git://github.com/deoxxa/node-siql.git node_modules/siql
API
mergeQueries
Merges a list of queries into one, retaining the semantics of any restrictions in place on earlier queries in the list.
siql;
var merged = siql;
Arguments
- queries - an array of query objects.
Example
Also see example.js.
var siql = ; var queries = fields: a: true b: true c: true condition: type: "eq" left: "a" right: 5 sort: "time" -1 limit: 100 fields: a: true b: true c: true condition: type: "eq" left: "b" right: 5 limit: 1000 fields: a: true b: true c: true condition: type: "eq" left: "c" right: 5 limit: 500; var query = siql; console;
Output:
License
3-clause BSD. A copy is included with the source.
Contact
- GitHub (deoxxa)
- Twitter (@deoxxa)
- ADN (@deoxxa)
- Email (deoxxa@fknsrs.biz)