@cashfarm/store
Options
All
  • Public
  • Public/Protected
  • All
Menu

Use this class to add criteria functionality in classes that provide chain methods.

The CriteriaEnabled class uses generics to specify the return type of Criteria methods as an instance of your subclass. This way, other methods in your class can be chained.

export
abstract
class

CriteriaEnabled

extends

{Criteria}

template

TTable

template

TSubclass

Type parameters

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

$table

$table: TTable

conditions

conditions: ConditionGroup

Methods

where

  • where(condition: ConditionBuilder<TTable>): TSubclass
  • where(field: string | FieldSelector<TTable>, value: number | number[] | string | string[]): TSubclass
  • where(field: string | FieldSelector<TTable>, operator: string, value: any): TSubclass

whereAll

whereAny

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc