caql-decompiler
Decompiles a caql AST into a plaintext query.
Install
npm install caql-decompiler
Example
var Parser = ;var CaqlDecompiler = ;var decompiler = ; var query = 'select name, founded_year, total_money_raised as worth ' + 'where founded_year >= 1999 and name not like "%air%" ' + 'order by founded_year desc, name'; var ast = Parser; var ql = decompiler; console; // Output://// select name, founded_year, total_money_raised as worth where // ( founded_year >= 1999 and name not like "%air%" ) order by founded_year desc, name asc
License
MIT