Class: Escaper

Escaper

Helper class for escaping parts of a query.

Constructor

new Escaper()

Source:

Methods

escapeFullyQualifiedColumn(fqc) → {string}

Escape a fully-qualified column name, such as 'u.firstName' or 'phone_numbers.phoneNumber'.
Parameters:
Name Type Description
fqc string The fully-qualified column.
Source:
Returns:
The escaped column name.
Type
string

escapeProperty(prop) → {string}

Escape a property, such as a table, column name, or alias.
Parameters:
Name Type Description
prop string The property to escape.
Source:
Returns:
The escaped property.
Type
string