Query pagination configuration

Hierarchy

  • Pagination

Constructors

Methods

  • Get the offset

    Returns

    row result starting offset

    Returns number

  • Is there positive limit

    Returns

    true if limit above 0

    Returns boolean

  • Is there an offset

    Returns

    true if has an offset

    Returns boolean

  • If the limit is positive, increment the offset

    Returns void

  • Increment the offset by the count

    Parameters

    • count: number

      count to increment

    Returns void

  • Replace the limit and offset in the SQL statement with the pagination values

    Returns

    modified SQL statement

    Parameters

    • sql: string

      SQL statement

    Returns string

  • Set the limit

    Parameters

    • limit: number

      upper bound number of rows

    Returns void

  • Set the offset

    Parameters

    • offset: number

      row result starting offset

    Returns void

  • Find the pagination offset and limit from the SQL statement

    Returns

    pagination or null if not found

    Parameters

    • sql: string

      SQL statement

    Returns Pagination

  • Replace the pagination limit and offset in the SQL statement

    Returns

    modified SQL statement

    Parameters

    • pagination: Pagination

      pagination settings

    • sql: string

      SQL statement

    Returns string

Generated using TypeDoc