TinyBase logoTinyBase

ResultTableCallback

The ResultTableCallback type describes a function that takes a ResultTable's Id and a callback to loop over each ResultRow within it.

(
  tableId: Id,
  forEachRow: (rowCallback: ResultRowCallback) => void,
): void
TypeDescription
tableIdId

The Id of the ResultTable that the callback can operate on.

forEachRow(rowCallback: ResultRowCallback) => void

A function that will let you iterate over the ResultRow objects in this ResultTable.

returnsvoid

This has no return value.

A ResultTableCallback is provided when using the forEachResultTable method, so that you can do something based on every ResultTable in the Queries object. See that method for specific examples.