0.0.7 • Published 8 years ago

sql-operators v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

sql-operators

NPM

Defines the list of operators in SQL as an array in Node.js.

var sqlOperators = require('sql-operators');
sqlOperators.has('LIKE');  // true
sqlOperators.has('JOKER'); // false

Arithmetic operators

OperatorDescription
+Add
-Subtract
*Multiply
/Divide
%Modulo

Bitwise operators

OperatorDescription
&Bitwise AND
|Bitwise OR
^Bitwise exclusive OR

Comparison operators

OperatorDescription
=Equal to
>Greater than
<Less than
>=Greater than or equal to
<=Less than or equal to
<>Not equal to

Compound operators

OperatorDescription
+=Add equals
-=Subtract equals
*=Multiply equals
/=Divide equals
%=Modulo equals
&=Bitwise AND equals
^=Bitwise exclusive OR equals
|=Bitwise OR equals

Logical operators

OperatorDescription
ALLTRUE if all of the subquery values meet the condition
ANDTRUE if all the conditions separated by AND is TRUE
ANYTRUE if any of the subquery values meet the condition
BETWEENTRUE if the operand is within the range of comparisons
EXISTSTRUE if the subquery returns one or more records
INTRUE if the operand is equal to one of a list of expressions
LIKETRUE if the operand matches a pattern
NOTDisplays a record if the condition(s) is NOT TRUE
ORTRUE if any of the conditions separated by OR is TRUE
SOMETRUE if any of the subquery values meet the condition
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.0

8 years ago