This package has been deprecated

Author message:

WARNING: This project has been renamed to @florajs/ql-compiler. Install using @florajs/ql-compiler instead.

flora-ql-compile

3.0.0 • Public • Published

flora-ql-compile

NPM version NPM downloads

Compiles a Flora Query Language statement into a function.

Examples

const compile = require('flora-ql-compile');

// Use a Flora filter as function
const filterFn = compile.filter('id=321 AND userId=109369');
filterFn({ id: 321, userId: 109369 }) // => true
filterFn({ id: 321, userId: 109368 }) // => false

// Use a Flora select statment as function
const selectFn = compile.select('foo,bar[baz]');
selectFn({ foo: 42, bar: { baz: 23, id: 1337 }, bla: 'blubb' })
// => { foo: 42, bar: { baz: 23 } }

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i flora-ql-compile

Weekly Downloads

8

Version

3.0.0

License

MIT

Unpacked Size

6.33 kB

Total Files

9

Last publish

Collaborators

  • nicokaiser