Class SqlBuilder

Hierarchy

  • SqlBuilder

Constructors

Properties

joins: {
    converter: ConvertDataToDict;
    forJoinIndex: number;
    join: DatabaseJoinModel<any, any>;
    startIndex: number;
}[] = []
params: string[] = []
placeholderStrategy: SqlPlaceholderStrategy
platform: DefaultPlatform
rootConverter?: ConvertDataToDict
sqlSelect: string[] = []

Methods

  • Parameters

    • sql: Sql
    • schema: ReflectionClass<any>
    • model: DatabaseQueryModel<any, FilterQuery<any>, Sort<any, any>>
    • tableName: string

    Returns void

  • Parameters

    • schema: ReflectionClass<any>
    • model: SQLQueryModel<any>
    • startIndex: number
    • fields: ReflectionProperty[]

    Returns ConvertDataToDict

  • Parameters

    • schema: ReflectionClass<any>
    • model: SQLQueryModel<any>
    • refName: string = ''

    Returns {
        fields: ReflectionProperty[];
        startIndex: number;
    }

    • fields: ReflectionProperty[]
    • startIndex: number

Generated using TypeDoc