QueryBuilder builds different clauses for a SELECT SQL statement.

Hierarchy

  • QueryBuilder

Indexable

[key: string]: any

Methods

  • BuildFrom generates a FROM clause from the given tables.

    Parameters

    • tables: string[]

    Returns string

  • BuildGroupBy generates a GROUP BY clause from the given group-by columns.

    Parameters

    • cols: string[]

    Returns string

  • BuildHaving generates a HAVING clause from the given expression.

    Parameters

    Returns string

  • BuildJoin generates a JOIN clause from the given join information.

    Parameters

    Returns string

  • BuildOrderByAndLimit generates the ORDER BY and LIMIT clauses.

    Parameters

    • _arg0: string
    • _arg1: string[]
    • _arg2: number
    • _arg3: number

    Returns string

  • BuildSelect generates a SELECT clause from the given selected column names.

    Parameters

    • cols: string[]
    • distinct: boolean
    • option: string

    Returns string

  • BuildUnion generates a UNION clause from the given union information.

    Parameters

    Returns string

  • BuildWhere generates a WHERE clause from the given expression.

    Parameters

    Returns string

Generated using TypeDoc