calypso-query-decompiler

Decompiles Calypso Query objects into CaQL queries.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
calypso-query-decompiler
0.4.08 years ago8 years agoMinified + gzip package size for calypso-query-decompiler in KB

Readme

calypso-query-decompiler
Decompiles Calypso Query objects into CaQL queries.
Install
npm install calypso-query-decompiler
Example
var Query = require('calypso').Query;
var decompiler = require('calypso-query-decompiler');

var q = Query.of('companies')
  .ql('where name=@name and founded_year >= @year')
  .params({ name: 'Twitter', year: 1999 });

var decompiled = decompiler(q);

console.log(decompiled);

// Output: select * where ( name = "Twitter" and founded_year >= 1999 )
License
MIT