Class OINODbSqlLimit

Class for limiting the number of results.

Constructors

Methods

Constructors

Methods

  • Print order as SQL condition based on the datamodel of the API.

    Parameters

    • dataModel: OINODbDataModel

      data model (and database) to use for formatting of values

    Returns string

  • Constructor for OINODbSqlLimit as parser of http parameter.

    Supports limit and page formatted as:

    • limit - limit number of items to return
    • limit page n - limit number of items to return and return page n (starting from 1)
    • limit.n - limit number of items to return and return page n (starting from 1)

    Parameters

    • limitString: string

      string representation of limit from HTTP-request

    Returns OINODbSqlLimit