Module query/collectorgenerator
A module for creating select result set collectors
Functions
- createCollector(store, ast)
Properties
- createCollector.prototype.alias
- createCollector.prototype.columnCnt
- createCollector.prototype.columnIdx
- createCollector.prototype.mapping
createCollector (store, ast)
Creates an Array of collector instances for the query AST passed as argument.
Parameters
Store | store | The store to operate on |
Select | ast | The query AST |
Returns
Array | An array containing collector instances for all select expressions in a query. |
createCollector.prototype.alias
Contains the alias for this entity (if specified in the query)
createCollector.prototype.columnCnt
Contains the number of columns this collector will handle (1)
createCollector.prototype.columnIdx
Contains the column offset index (1-based)
createCollector.prototype.mapping
Contains the mapping of this collector