Class: QueryResult

QueryResult(id)

new QueryResult(id)

Internal constructor. Use `Connection.query` or `Connection.execute` to get a `QueryResult` object.
Parameters:
Name Type Description
id String the internal ID of the query result object.
Source:

Methods

(async) close()

Close the query result.
Source:

(async) getAllObjects() → {Array.<Object>}

Get all objects of the query result.
Source:
Returns:
all objects of the query result.
Type
Array.<Object>

(async) getAllRows() → {Array.<Array>}

Get all rows of the query result.
Source:
Returns:
all rows of the query result.
Type
Array.<Array>

(async) getColumnNames() → {Array.<String>}

Get the column names of the query result.
Source:
Returns:
the column names of the query result.
Type
Array.<String>

(async) getColumnTypes() → {Array.<String>}

Get the column types of the query result.
Source:
Returns:
the column types of the query result.
Type
Array.<String>

(async) getErrorMessage() → {String}

Get the error message if the query result is not successfully executed.
Source:
Returns:
the error message.
Type
String

(async) getNext() → {Array}

Get the next row of the query result.
Source:
Returns:
the next row of the query result.
Type
Array

(async) getNextQueryResult() → {QueryResult}

Get the following query result when multiple statements are executed within a single query.
Source:
Returns:
the next query result.
Type
QueryResult

(async) getNumColumns() → {Number}

Get the number of columns of the query result.
Source:
Returns:
the number of columns of the query result.
Type
Number

(async) getNumTuples() → {Number}

Get the number of rows of the query result.
Source:
Returns:
the number of rows of the query result.
Type
Number

(async) getQuerySummary() → {Object}

Get the query summary (execution time and compiling time) of the query result.
Source:
Returns:
the query summary of the query result.
Type
Object

hasNext() → {Number}

Get the number of rows of the query result.
Source:
Returns:
the number of rows of the query result.
Type
Number

hasNextQueryResult() → {Boolean}

Check if the query result has a following query result when multiple statements are executed within a single query.
Source:
Returns:
true if the query result has a following query result.
Type
Boolean

isSuccess() → {Boolean}

Check if the query result is successfully executed.
Source:
Returns:
true if the query result is successfully executed.
Type
Boolean

(async) resetIterator()

Reset the iterator of the query result to the beginning. This function is useful if the query result is iterated multiple times.
Source:

(async) toString() → {String}

Get the string representation of the query result.
Source:
Returns:
the string representation of the query result.
Type
String