Skip to main content
Version: 4.4

Interface: Having<TRecord, TResult>#

knex.Knex.Having

Type parameters#

NameDefault
TRecordany
TResultunknown[]

Hierarchy#

Callable#

Having<K>(column: K, operator: ComparisonOperator, value: Readonly<TRecord[K]> | Readonly<Raw<TRecord[K]>>): QueryBuilder<TRecord, TResult>

Type parameters:#

NameType
Kstring | number | symbol

Parameters:#

NameType
columnK
operatorComparisonOperator
valueReadonly<TRecord[K]> | Readonly<Raw<TRecord[K]>>

Returns: QueryBuilder<TRecord, TResult>

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

Having(column: string | Raw<any>, operator: string, value: null | string | number | boolean | Date | Buffer | string[] | number[] | QueryBuilder<any, any> | Date[] | boolean[] | Raw<any>): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
columnstring | Raw<any>
operatorstring
valuenull | string | number | boolean | Date | Buffer | string[] | number[] | QueryBuilder<any, any> | Date[] | boolean[] | Raw<any>

Returns: QueryBuilder<TRecord, TResult>

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

Having(raw: Raw<any>): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
rawRaw<any>

Returns: QueryBuilder<TRecord, TResult>

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

Having(callback: QueryCallback<TRecord, TResult>): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
callbackQueryCallback<TRecord, TResult>

Returns: QueryBuilder<TRecord, TResult>

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

Last updated on by Martin Adámek