Module: query-parser

query-parser

Methods

compileJoin(condition) → {String}

Return the output of the parsing of the join condition

Parameters:
Name Type Description
condition String

The join condition to evalate

Source:
Returns:
  • The parsed/escaped join condition
Type
String

hasOperator(string) → {Array|null}

Check if the string contains an operator, and if so, return the operator(s). If there are no matches, return null

Parameters:
Name Type Description
string String

the string to check

Source:
Returns:
Type
Array | null

parseJoin(sql) → {Object}

Tokenize the sql into parts for additional processing

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

parseWhere(driver, state) → {String}

Parse a where clause to separate functions from values

Parameters:
Name Type Description
driver Object
state State
Source:
Returns:
  • The parsed/escaped where condition
Type
String
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.3.0-beta1 on Wed Jan 28th 2015 using the DocStrap template.