Options
All
  • Public
  • Public/Protected
  • All
Menu

objection-match

Index

Type aliases

AliasMap

AliasMap: Record<string, string>

ComparisonFunction

ComparisonFunction: "eq" | "neq" | "geq" | "leq" | "lt" | "gt" | "like" | "in"

ComparisonNode

ComparisonNode: { args: { identifier: string; value: string }; fn: ComparisonFunction; type: "comparison" }

Type declaration

  • args: { identifier: string; value: string }
    • identifier: string
    • value: string
  • fn: ComparisonFunction
  • type: "comparison"

LogicalFunction

LogicalFunction: "match_all" | "match_any"

LogicalNode

LogicalNode: { constraints: (LogicalNode | ComparisonNode)[]; fn: LogicalFunction; type: "logical" }

Type declaration

Node

RelationExpression

RelationExpression: string

RelationNode

RelationNode: { children: RelationNode[]; name: string }

Type declaration

Functions

Const log

  • log(message: string, color?: Colors): void

Object literals

Const ComparisonFunctionMappings

ComparisonFunctionMappings: object

eq

eq: string = "="

geq

geq: string = ">="

gt

gt: string = ">"

in

in: string = "in"

leq

leq: string = "<="

like

like: string = "like"

lt

lt: string = "<"

neq

neq: string = "<>"

Const DefaultPluginOptions

DefaultPluginOptions: object

cacheMaxSize

cacheMaxSize: number = 20

enableCache

enableCache: false = false

Const LogicalFunctionMappings

LogicalFunctionMappings: object

match_all

match_all: andWhere = BuilderFunction.andWhere

match_any

match_any: orWhere = BuilderFunction.orWhere

Generated using TypeDoc