Class: ProcedureCallResult

Represents the results from the call method holding the returned results or metadata of the query execution.

Methods

getNextQueryResult

Updates executionResult or queryResult field with the succeeding result in the result list.

close

Releases the associated resources such as the database connection, results, etc.

Fields

  • executionResult ExecutionResult?(default ())
  • Summary of the query execution

  • queryResult stream<record {}, Error?>?(default ())
  • Results from the SQL query

  • customResultIterator CustomResultIterator?
  • Any custom result iterator to be used to override the default behaviour

getNextQueryResult

function getNextQueryResult() returns boolean | Error
Isolated Function

Updates executionResult or queryResult field with the succeeding result in the result list. This will also close the current result when called.

Return Type

(boolean | Error)

True if the next result is queryResult

close

function close() returns Error?
Isolated Function

Releases the associated resources such as the database connection, results, etc.

Return Type

(Error?)

An sql:Error if any error occurred while cleanup