Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Escaper

Helper class for escaping parts of a query.

Hierarchy

Index

Methods

escapeFullyQualifiedColumn

  • escapeFullyQualifiedColumn(fqc: string): string
  • Escape a fully-qualified column name, such as 'u.firstName' or 'phone_numbers.phoneNumber'.

    Parameters

    • fqc: string

      The fully-qualified column.

    Returns string

    The escaped column name.

Abstract escapeProperty

  • escapeProperty(prop: string): string
  • Escape a property, such as a table, column name, or alias.

    Parameters

    • prop: string

      The property to escape.

    Returns string

    The escaped property as a string.

Generated using TypeDoc