dbHasCompleted-TrinoResult-method: Have all rows of a result been consumed?

dbHasCompleted,TrinoResult-methodR Documentation

Have all rows of a result been consumed?

Description

TRUE once Trino has stopped handing out pages and the rows already pulled have been handed to the caller. A result that has finished on the server but still holds buffered rows is not complete, so a ⁠while (!dbHasCompleted(res))⁠ loop over dbFetch() sees every row.

Usage

## S4 method for signature 'TrinoResult'
dbHasCompleted(res, ...)

Arguments

res

A TrinoResult object.

...

Unused, for compatibility with the generic.

Value

A logical scalar.


RTrino documentation built on Oct. 15, 2026, 5:08 p.m.