Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Where

A base class for making where clauses

Hierarchy

  • Where

Index

Constructors

constructor

Methods

Static parseQueryValue

  • parseQueryValue(key: string, value: any, isNot?: boolean): string
  • parses a query value recursively into a Database query

    Parameters

    • key: string

      name of the field

    • value: any

      value of the field

    • Default value isNot: boolean = false

      defaults to false, the reverses the logic to be parsed

    Returns string

    part of the querystring to be returned

Static parseSearchValue

  • parseSearchValue(key: string, value: any): string
  • parses part of the query value recursively into Lucene query syntax

    Parameters

    • key: string

      name of the field

    • value: any

      value of the field

    Returns string

    part of the querystring to be returned

Static toQuerySyntax

  • toQuerySyntax(data: any): string
  • convert an Object to Database Query Syntax

    Parameters

    • data: any

      the object that contains query string name value pairs

    Returns string

    resulting querystring

Static toSearchSyntax

  • toSearchSyntax(data: any): string
  • convert an Object to Lucene Query Syntax

    Parameters

    • data: any

      the object that contains query string name value pairs

    Returns string

    resulting querystring

Static writeLuceneValue

  • writeLuceneValue(value: any): string

Static writeLuceneValues

  • writeLuceneValues(values: any): string

Static writeQueryValue

  • writeQueryValue(value: any): string | number

Static writeQueryValues

  • writeQueryValues(values: any): string

Generated using TypeDoc