Skip to main content
Version: 4.4

Interface: With<TRecord, TResult>#

knex.Knex.With

Type parameters#

NameDefault
TRecordany
TResultunknown[]

Hierarchy#

Callable#

With(alias: string, raw: QueryBuilder<any, any> | Raw<any>): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
aliasstring
rawQueryBuilder<any, any> | Raw<any>

Returns: QueryBuilder<TRecord, TResult>

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

With(alias: string, sql: string, bindings?: Object | readonly Value[]): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
aliasstring
sqlstring
bindings?Object | readonly Value[]

Returns: QueryBuilder<TRecord, TResult>

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

With(alias: string, queryBuilder: QueryBuilder<any, any>): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
aliasstring
queryBuilderQueryBuilder<any, any>

Returns: QueryBuilder<TRecord, TResult>

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

With(alias: string, callback: (queryBuilder: QueryBuilder<any, any>) => any): QueryBuilder<TRecord, TResult>

Parameters:#

NameType
aliasstring
callback(queryBuilder: QueryBuilder<any, any>) => any

Returns: QueryBuilder<TRecord, TResult>

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

Last updated on by renovate[bot]