Module: query-builder

query-builder

Members

<private, inner> _p

"Private" methods
Source:

<private, inner> state :Object

Variables controlling the sql building
Type:
  • Object
Source:

Methods

<static> from(tableName) → {exports}

Specify the database table to select from
Parameters:
Name Type Description
tableName String
Source:
Returns:
Type
exports

<static> getCompiledSelect() → {String}

Return generated select query SQL
Source:
Returns:
Type
String

<static> getState() → {Object}

Returns the current class state for testing or other purposes
Source:
Returns:
Type
Object

<static> resetQuery()

Reset the object state for a new query
Source:
Returns:
void

<static> select(fields) → {exports}

Specify rows to select in the query
Parameters:
Name Type Description
fields String | Array
Source:
Returns:
Type
exports