Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConditionMapper

High-level helper class that is used to change the names of properties in a condition using a ColumnLookup instance.

Hierarchy

  • ConditionMapper

Index

Methods

Methods

map

  • Map the condition.

    Parameters

    • condStr: string | object

      The condition string to parse. If condStr is an object it is converted to a string using JSON.stringify.

    • columnLookup: ColumnLookup

      A ColumnLookup instance used to change the properties (loosly "columns") in the condition.

    • Optional params: ParameterType

      An optional object containing key-value pairs that are used to replace parameters in the query. The compiler verifies that there is a replacement for every parameter, but does not perform the actual replacement.

    Returns object

    The same condition, but with the column/property names changed.

Generated using TypeDoc