Class SQLFilterBuilder

Hierarchy

  • SQLFilterBuilder

Constructors

  • Parameters

    • schema: ReflectionClass<any>
    • tableName: string
    • serializer: Serializer
    • placeholderStrategy: SqlPlaceholderStrategy
    • quoteValue: ((v: any) => string)
        • (v: any): string
        • Parameters

          • v: any

          Returns string

    • quoteId: ((v: string) => string)
        • (v: string): string
        • Parameters

          • v: string

          Returns string

    Returns SQLFilterBuilder

Properties

params: any[] = []
placeholderStrategy: SqlPlaceholderStrategy
quoteId: ((v: string) => string)

Type declaration

    • (v: string): string
    • Parameters

      • v: string

      Returns string

quoteValue: ((v: any) => string)

Type declaration

    • (v: any): string
    • Parameters

      • v: any

      Returns string

schema: ReflectionClass<any>
serializer: Serializer
tableName: string

Methods

  • Normalizes values necessary for the conection driver to bind parameters for prepared statements. E.g. SQLite does not support boolean, so we convert boolean to number.

    Parameters

    • value: any

    Returns any

  • Parameters

    • fieldName: undefined | string
    • value: any
    • comparison: string

    Returns string

Generated using TypeDoc