calypso-query-decompiler

Decompiles Calypso Query objects into CaQL queries.

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

HomePage

https://github.com/kevinswiber/calypso-query-decompiler

Repository

https://github.com/kevinswiber/calypso-query-decompiler.git


上一篇:caql-js-compiler
下一篇:calypso-level

相关推荐

  • i18n-calypso

    i18n JavaScript library on top of Tannin originally used in Calypso I18n Calypso This lib enables tr...

    2 个月前
  • eslint-plugin-wpcalypso

    Custom ESLint rules for the WordPress.com Calypso project Eslint plugin wpcalypso Custom ESLint rule...

    2 个月前
  • eslint-config-wpcalypso

    ESLint configuration following WordPress.com's Calypso JavaScript Coding Guidelines Eslint config wp...

    2 个月前
  • caql-decompiler

    Decompiles a CaQL AST into a plaintext query. caql-decompiler Decompiles a caql AST into a plaintext...

    7 个月前
  • calypso-memory

    A calypso driver for in-memory data stores. calypso-memory An in-memory driver for calypso. Install ...

    7 个月前
  • calypso-level

    A calypso driver for LevelUP-compatible data stores. calypso-level A LevelDB driver for calypso. Ins...

    7 个月前
  • calypso

    A common query interface for data stores, featuring a SQL-like query language. calypso Use a SQL-li...

    7 个月前
  • @automattic/babel-plugin-i18n-calypso

    A Babel plugin to generate a POT file for translate calls Babel plugin i18n Calypso A Babel plugin t...

    2 个月前

官方社区

扫码加入 JavaScript 社区