Skip to main content
Version: 4.5

Interface: ColumnNameQueryBuilder<TRecord, TResult>#

knex.Knex.ColumnNameQueryBuilder

Type parameters#

NameDefault
TRecordany
TResultunknown[]

Hierarchy#

Callable#

ColumnNameQueryBuilder(columnName: **): [QueryBuilder](/docs/api/classes/knex.knex-1.querybuilder)<TRecord, ArrayIfAlready<TResult, DeferredKeySelection<TRecord, string, false, {}, false*, {}, never>>>

Parameters:#

NameType
columnName***

Returns: QueryBuilder<TRecord, ArrayIfAlready<TResult, DeferredKeySelection<TRecord, string, false, {}, false, {}, never>>>

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

ColumnNameQueryBuilder<ColNameUT, TResult2>(...columnNames: readonly ColNameUT[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameTypeDefault
ColNameUTstring | number | symbol-
TResult2-AddAliases<AddKey<SetBase<UnwrapArrayMember<TResult>, ResolveTableType<TRecord, base>>, ColNameUT & string>, {}>[]

Parameters:#

NameType
...columnNamesreadonly ColNameUT[]

Returns: QueryBuilder<TRecord, TResult2>

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

ColumnNameQueryBuilder<ColNameUT, TResult2>(columnNames: readonly ColNameUT[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameTypeDefault
ColNameUTstring | number | symbol-
TResult2-AddAliases<AddKey<SetBase<UnwrapArrayMember<TResult>, ResolveTableType<TRecord, base>>, ColNameUT & string>, {}>[]

Parameters:#

NameType
columnNamesreadonly ColNameUT[]

Returns: QueryBuilder<TRecord, TResult2>

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

ColumnNameQueryBuilder<TResult2>(...columnNames: readonly ColumnDescriptor<TRecord, TResult>[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameDefault
TResult2AddAliases<AddKey<SetBase<UnwrapArrayMember<TResult>, Partial<AnyOrUnknownToOther<TRecord, {}>>>, keyof TRecord & string>, {}>[]

Parameters:#

NameType
...columnNamesreadonly ColumnDescriptor<TRecord, TResult>[]

Returns: QueryBuilder<TRecord, TResult2>

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

ColumnNameQueryBuilder<TResult2>(columnNames: readonly ColumnDescriptor<TRecord, TResult>[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameDefault
TResult2AddAliases<AddKey<SetBase<UnwrapArrayMember<TResult>, Partial<AnyOrUnknownToOther<TRecord, {}>>>, keyof TRecord & string>, {}>[]

Parameters:#

NameType
columnNamesreadonly ColumnDescriptor<TRecord, TResult>[]

Returns: QueryBuilder<TRecord, TResult2>

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

Last updated on by Martin Adámek