Was this page helpful?
Row¶
types~Row()
Represents a result row
Constructor¶
new Row()
Creates Row from array of column names. Column names can be provided either as array of strings or array of objects with property name representing column name. Any other metadata will be ignored
Source
Methods¶
forEach()
Executes the callback for each field in the row, containing the value as first parameter followed by the columnName
Source
get(columnName)
Returns the cell value.
Parameters:
| Name | Type | Description |
|---|---|---|
columnName |
Name or index of the column |
Source
keys()
Returns an array of the column names of the row
Source
values()
Returns an array of the values of the row
Source