Iskra API Reference
    Preparing search index...

    Function paginate

    • One page of query and the total it matches, with OFFSET … FETCH NEXT. The query needs an orderBy (end it with a unique column): Oracle returns rows in no set order without one, so pages would repeat or skip rows. Runs the page and a count on db, which may be a transaction's.

      Type Parameters

      • DB
      • TB extends string | number | symbol
      • O

      Parameters

      Returns Promise<Page<O>>