@maschinenlesbar.org/mudab-cli
    Preparing search index...

    Function readPages

    • Read a table page by page (pageRows rows each, one request after the other, from page firstPage), handing each page and its number to each, until a page is short (the table's end) or the page maxPages would be next. The server honours only the range, so this is how a whole table is read without one answer over the size cap.

      Type Parameters

      • T

      Parameters

      • fetch: Fetch<T>
      • pageRows: number
      • maxPages: number
      • each: (rows: T[], page: number) => void
      • firstPage: number = 0

      Returns Promise<PagesRead>