Skip to main content
Version: 6.4

IQueryBuilder <T>

Index

Properties

optional_fields

_fields?: Field<T>[]

readonlyalias

alias: string

optionalreadonlytype

type?: QueryType

Methods

addSelect

  • addSelect(fields): this
  • Parameters

    • fields: string | string[]

    Returns this

andWhere

  • andWhere(cond): this
  • andWhere(cond, params): this

clone

count

  • count(field, distinct): this
  • Parameters

    • optionalfield: string | string[]
    • optionaldistinct: boolean

    Returns this

delete

  • delete(cond): this

from

getAliasForJoinPath

  • getAliasForJoinPath(path, options): undefined | string

getJoinForPath

getNextAlias

  • getNextAlias(entityName): string
  • Parameters

    • optionalentityName: string

    Returns string

groupBy

  • groupBy(fields): this
  • Parameters

    • fields: string | keyof T | (string | keyof T)[]

    Returns this

hasFlag

  • hasFlag(flag): boolean

having

  • having(cond, params): this
  • Parameters

    Returns this

innerJoin

  • innerJoin(field, alias, cond): this
  • Parameters

    Returns this

innerJoinAndSelect

  • innerJoinAndSelect(field, alias, cond, fields): this
  • Parameters

    • field: string
    • alias: string
    • optionalcond: QBFilterQuery
    • optionalfields: string[]

    Returns this

insert

  • insert(data): this
  • Parameters

    • data: any

    Returns this

join

  • join(field, alias, cond, type, path): this
  • Parameters

    Returns this

joinAndSelect

  • joinAndSelect(field, alias, cond): this
  • Parameters

    Returns this

leftJoin

  • leftJoin(field, alias, cond): this
  • Parameters

    Returns this

leftJoinAndSelect

  • leftJoinAndSelect(field, alias, cond, fields): this
  • Parameters

    • field: string
    • alias: string
    • optionalcond: QBFilterQuery
    • optionalfields: string[]

    Returns this

orderBy

  • orderBy(orderBy): this

orWhere

  • orWhere(cond): this
  • orWhere(cond, params): this

select

  • select(fields, distinct): this
  • Parameters

    • fields: Field<T> | Field<T>[]
    • optionaldistinct: boolean

    Returns this

setFlag

  • setFlag(flag): this

truncate

  • truncate(): this
  • Returns this

unsetFlag

  • unsetFlag(flag): this

update

  • update(data): this
  • Parameters

    • data: any

    Returns this

where

  • where(cond, operator): this
  • where(cond, params, operator): this
  • Parameters

    Returns this

withSubQuery

  • withSubQuery(subQuery, alias): this
  • Parameters

    • subQuery: QueryBuilder<any, any>
    • alias: string

    Returns this