Skip to main content

Module

Query result wrapper for easy data access and pagination.

QueryResult

A list-like wrapper for query results that provides easy access to records and pagination. This class makes it simple to work with query results by:
  • Providing list-like indexing and iteration (e.g., result[0], for record in result)
  • Flattening nested record structures into simple dictionaries
  • Exposing pagination metadata (limit, next_starting_token, paginated)
  • Offering a next_page() method to easily fetch subsequent pages
Examples

has_next_page

Whether there is a next page available.

last_row_id

The ID of the last row in this result set.

limit

The maximum number of records per page.

next_page

Fetch the next page and extend current results. Examples

next_starting_token

Token for fetching the next page, or None if this is the last page.

paginated

Whether pagination is enabled.

starting_token

The starting token used for this page.

to_list

Convert the result to a plain list of dictionaries. Examples