Skip to main content
Version: 4.4

Interface: Table<TRecord, TResult>#

knex.Knex.Table

Type parameters#

NameTypeDefault
TRecord{}any
TResult{}any

Hierarchy#

  • Table

Callable#

Table<TTable, TRecord2, TResult2>(tableName: TTable, options?: PgTableOptions): QueryBuilder<TRecord2, TResult2>

Type parameters:#

NameTypeDefault
TTablenever-
TRecord2-TableType<TTable\>
TResult2-ReplaceBase<TResult, ResolveTableType<TRecord2, base\>\>

Parameters:#

NameType
tableNameTTable
options?PgTableOptions

Returns: QueryBuilder<TRecord2, TResult2>

Defined in: node_modules/knex/types/index.d.ts:981

Table<TRecord2, TResult2>(tableName: string | Raw<any> | QueryBuilder<any, any> | AliasDict, options?: PgTableOptions): QueryBuilder<TRecord2, TResult2>

Type parameters:#

NameDefault
TRecord2unknown
TResult2ReplaceBase<TResult, TRecord2\>

Parameters:#

NameType
tableNamestring | Raw<any> | QueryBuilder<any, any> | AliasDict
options?PgTableOptions

Returns: QueryBuilder<TRecord2, TResult2>

Defined in: node_modules/knex/types/index.d.ts:989

Table<TRecord2, TResult2>(callback: Function, options?: PgTableOptions): QueryBuilder<TRecord2, TResult2>

Type parameters:#

NameDefault
TRecord2unknown
TResult2ReplaceBase<TResult, TRecord2\>

Parameters:#

NameType
callbackFunction
options?PgTableOptions

Returns: QueryBuilder<TRecord2, TResult2>

Defined in: node_modules/knex/types/index.d.ts:996

Table<TRecord2, TResult2>(raw: Raw<any>, options?: PgTableOptions): QueryBuilder<TRecord2, TResult2>

Type parameters:#

NameDefault
TRecord2unknown
TResult2ReplaceBase<TResult, TRecord2\>

Parameters:#

NameType
rawRaw<any>
options?PgTableOptions

Returns: QueryBuilder<TRecord2, TResult2>

Defined in: node_modules/knex/types/index.d.ts:1003

Last updated on by renovate[bot]