CondParser

CondParser

SQL Condition parser class

Constructor

new CondParser()

Source:

Methods

parseBaseExpression(operator) → {Object}

Source:
Parameters:
Name Type Description
operator String
Returns:
Type
Object

parseConditionExpression() → {Object}

Description:
  • Parse conditions ([word/string] [operator] [word/string])

Source:
Returns:
Type
Object

parseExpressionsRecursively() → {Object}

Description:
  • Wrapper function ; parse the source

Source:
Returns:
Type
Object

parseGroupExpression(operator) → {Object}

Source:
Parameters:
Name Type Description
operator String
Returns:
Type
Object

parseLogicalExpression() → {Object}

Description:
  • Parse logical expressions (AND/OR)

Source:
Returns:
Type
Object

parseSelectExistsSubQuery() → {Array.<Object>}

Source:
Returns:
Type
Array.<Object>

parseSelectIn(startAstNode, isSelectStatement) → {Object}

Source:
Parameters:
Name Type Description
startAstNode any
isSelectStatement Boolean
Returns:
Type
Object

parseWordExpression() → {Object}

Source:
Returns:
Type
Object

readNextToken() → {Object}

Description:
  • Read the next token (skip empty tokens)

Source:
Returns:
Type
Object

(static) groupBracketIncrementer(inCurrentToken) → {Number}

Source:
Parameters:
Name Type Description
inCurrentToken Object
Returns:
Type
Number

(static) parse(source) → {Object}

Description:
  • Parse a string

Source:
Parameters:
Name Type Description
source String
Returns:
Type
Object