Constructor
new Result(rows, columns)
Create a result object
Parameters:
Name | Type | Description |
---|---|---|
rows |
Array | the data rows of the result |
columns |
Array | the column names in the result |
Methods
columnCount() → {Number}
Get the number of columns returned by the query
Returns:
- the number of columns in the result
- Type
- Number
rowCount() → {Number}
Get the number of rows returned by the query
Returns:
- the number of rows in the result
- Type
- Number