Result2Array object contains a set of functions which converts JSON data received by the driver into array data. The following functions are available:

RowsArray: Return the query records as a two-dimensional arrayrows, columns

ColumnNamesArray: Returns a single-dimensional array with the columns names returned by the query.

ColumnTypesArray: Returns a single-dimensional array with the columns data types returned by the query.

TotalRowsCount: Returns the total number of records returned by the query. Not the same as the current rows count in the data array – TotalRowsCount includes also the result of all possible successive fetch commands.

Fetching more results

We will now implement all the steps described at the beginning at this section, including consecutive fetch commands. And this time we will use driver events in our code: