Relational table API for retrieving data.
- Mixes In:
Methods
-
fetchAll()
-
Consume the current result set from memory (and flush it).
Returns:
A list of rows.- Type
- Array.<Array>
Example
-
fetchOne()
-
Consume a single result set row from memory (and flush it).
Returns:
A row.- Type
- Array
Example
-
getColumns()
-
Retrieve the list of columns that are part of the result set.
Returns:
A list of columns.- Type
- Array.<module:Column>
Example
-
getResults()
-
Retrieve the entire result set (without flushing).
Returns:
- Type
- Array.<Array.<Array>>
-
nextResult()
-
Move to the next available result set.
Returns:
- Type
- boolean
Example
-
toArray()
-
Returns the current result set (without flushing) as a JavaScript Arrray.
Returns:
- Type
- Array