Class: ProcedureCallResult

Object that is used to return stored procedure call results.

Methods

getNextQueryResult

Updates executionResult or queryResult with the next result in the result.

close

Closes the sql:ProcedureCallResult object and releases the associated resources.

Fields

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

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

  • customResultIterator CustomResultIterator?
  • The instance of the custom Ballerina class that is structurally equivalent to the customResultIterator object type. This instance includes a custom implementation of the getNextQueryResult method

getNextQueryResult

function getNextQueryResult() returns boolean | Error
Isolated Function

Updates executionResult or queryResult with the next result in the result. This will also close the current results by default.

Return Type

(boolean | Error)

True if the next result is queryResult

close

function close() returns Error?
Isolated Function

Closes the sql:ProcedureCallResult object and releases the associated resources.

Return Type

(Error?)

An sql:Error if any error occurred while closing