Skip to main content
Version: 4.5

Interface: WithRaw<TRecord, TResult>#

knex.Knex.WithRaw

Type parameters#

NameDefault
TRecordany
TResultunknown[]

Hierarchy#

Callable#

WithRaw(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:1188

WithRaw(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:1189

Last updated on by Martin Adámek