@aegis-framework/want

0.1.2 • Public • Published

WANT Query Format

Description

WANT is an acronym for We Are Not Tableau. It stands for an overly simplistic way to perform complex queries using an easy to parse format.

Operators

WANT defines a set of universal operators to perform the queries.

Operator Logical Translation Additional Notes and Behavior
= Is equal
! Is not equal
~ Contains On numeric values, this operator will act the same as the = operator.
^ Does not contains On numeric values, this operator will act the same as the ! operator.
> More than
< Less than

Samples

All users whose [first name equals Jane and does not equal John and last name contains Doe] OR [age is more than 20]

[
  [ first_name: [ '=Jane', '!John' ], last_name: [ '~Doe' ] ],
  { age: [ '>20' ] }
]

License

WANT is a Free Open Source Software project released under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i @aegis-framework/want

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

46.6 kB

Total Files

11

Last publish

Collaborators

  • hyuchia