Class OINODbSqlFilter

Class for recursively parsing of filters and printing them as SQL conditions. Supports three types of statements

  • comparison: (field)-lt|le|eq|ge|gt|like(value)
  • negation: -not(filter)
  • conjunction/disjunction: (filter)-and|or(filter) Supported conditions are comparisons (<, <=, =, >=, >) and substring match (LIKE).

Constructors

Methods

Constructors

Methods

  • Does filter contain any valid conditions.

    Returns boolean

  • Print filter 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 OINOFilter as parser of http parameter.

    Parameters

    • filterString: string

      string representation of filter from HTTP-request

    Returns OINODbSqlFilter