Skip to main content
Version: 4.5

Interface: AsymmetricAggregation<TRecord, TResult, TValue>#

knex.Knex.AsymmetricAggregation

Type parameters#

NameDefault
TRecordany
TResultunknown[]
TValueany

Callable#

AsymmetricAggregation<TResult2>(...columnNames: readonly keyof ResolveTableType<TRecord, base>[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameDefault
TResult2ArrayIfAlready<TResult, UnwrapArrayMember<TResult> extends DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps, TUnionProps> ? true extends THasSelect ? DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps & Dict<TValue>, TUnionProps> : DeferredKeySelection<{}, never, true, {}, false, Dict<TValue>, never> : Dict<TValue>>

Parameters:#

NameType
...columnNamesreadonly keyof ResolveTableType<TRecord, base>[]

Returns: QueryBuilder<TRecord, TResult2>

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

AsymmetricAggregation<TAliases, TResult2>(aliases: TAliases): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameTypeDefault
TAliasesobjectRecord<string, string | string[] | Raw<any>>
TResult2-ArrayIfAlready<TResult, UnwrapArrayMember<TResult> extends DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps, TUnionProps> ? true extends THasSelect ? DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps & { [k in string | number | symbol]?: TValue}, TUnionProps> : DeferredKeySelection<{}, never, true, {}, false, { [k in string | number | symbol]?: TValue}, never> : { [k in string | number | symbol]?: TValue}>

Parameters:#

NameType
aliasesTAliases

Returns: QueryBuilder<TRecord, TResult2>

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

AsymmetricAggregation<TResult2>(...columnNames: readonly (string | Raw<any> | Readonly<Record<string, string | string[] | Raw<any>>>)[]): QueryBuilder<TRecord, TResult2>

Type parameters:#

NameDefault
TResult2ArrayIfAlready<TResult, UnwrapArrayMember<TResult> extends DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps, TUnionProps> ? true extends THasSelect ? DeferredKeySelection<TBase, TKeys, THasSelect, TAliasMapping, TSingle, TIntersectProps & Dict<TValue>, TUnionProps> : DeferredKeySelection<{}, never, true, {}, false, Dict<TValue>, never> : Dict<TValue>>

Parameters:#

NameType
...columnNamesreadonly (string | Raw<any> | Readonly<Record<string, string | string[] | Raw<any>>>)[]

Returns: QueryBuilder<TRecord, TResult2>

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

Last updated on by Renovate Bot