Class: Row

types~ Row

Constructor

new Row(columns)

Represents a result row
Parameters:
Name Type Description
columns Array

Methods

forEach(callback)

Executes the callback for each field in the row, containing the value as first parameter followed by the columnName
Parameters:
Name Type Description
callback function

get(columnName)

Returns the cell value.
Parameters:
Name Type Description
columnName String | Number Name or index of the column

keys() → {Array}

Returns an array of the column names of the row
Returns:
Type
Array

values() → {Array}

Returns an array of the values of the row
Returns:
Type
Array