Skip to main content
Version: 4.5

Interface: Table<TRecord, TResult>#

knex.Knex.Table

Type parameters#

NameTypeDefault
TRecordobjectany
TResultobjectany

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:987

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

Type parameters:#

NameDefault
TRecord2unknown
TResult2ReplaceBase<TResult, TRecord2>

Parameters:#

NameType
tableNameTableDescriptor | AliasDict
options?PgTableOptions

Returns: QueryBuilder<TRecord2, TResult2>

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

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:1002

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:1009

Last updated on by Renovate Bot