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 ProcedureCallResult object and releases resources.

Fields

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

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

  • customResultIterator CustomResultIterator?
  • The instance of the custom ballerina class that is structurally equivalent to 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 ProcedureCallResult object and releases resources.

Return Type

(Error?)

Error if any error occurred while closing.