0.0.6 • Published 8 years ago

sql-operandcount v0.0.6

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

sql-operandcount

NPM

Defines the number of operands used with an SQL operator in Node.js.

var sqlOperandCount = require('sql-operandcount');
sqlOperandCount.get('+');       // 2
sqlOperandCount.get('BETWEEN'); // 3

Arithmetic operators

OperatorOperand CountDescription
+2Add
-2Subtract
*2Multiply
/2Divide
%2Modulo

Bitwise operators

OperatorOperand CountDescription
&2Bitwise AND
|2Bitwise OR
^2Bitwise exclusive OR

Comparison operators

OperatorOperand CountDescription
=2Equal to
>2Greater than
<2Less than
>=2Greater than or equal to
<=2Less than or equal to
<>2Not equal to

Compound operators

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

Logical operators

OperatorOperand CountDescription
ALL2TRUE if all of the subquery values meet the condition
AND2TRUE if all the conditions separated by AND is TRUE
ANY2TRUE if any of the subquery values meet the condition
BETWEEN3TRUE if the operand is within the range of comparisons
EXISTS1TRUE if the subquery returns one or more records
IN2TRUE if the operand is equal to one of a list of expressions
LIKE2TRUE if the operand matches a pattern
NOT1Displays a record if the condition(s) is NOT TRUE
OR2TRUE if any of the conditions separated by OR is TRUE
SOME2TRUE if any of the subquery values meet the condition
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