LikeExp represents a variant of LIKE expressions.

Hierarchy

  • LikeExp

Methods

Properties

Methods

  • Build converts an expression into a SQL fragment.

    Parameters

    Returns string

  • Escape specifies how a LIKE expression should be escaped. Each string at position 2i represents a special character and the string at position 2i+1 is the corresponding escaped version.

    Parameters

    • Rest ...chars: string[]

    Returns LikeExp

  • Match specifies whether to do wildcard matching on the left and/or right of given strings.

    Parameters

    • left: boolean
    • right: boolean

    Returns LikeExp

Properties

like: string

Like stores the LIKE operator. It can be "LIKE", "NOT LIKE". It may also be customized as something like "ILIKE".

Generated using TypeDoc