Skip to main content
Version: 4.5

Interface: Config<SV>#

knex.Knex.Config

Type parameters#

NameTypeDefault
SVobjectany

Properties#

acquireConnectionTimeout#

• Optional acquireConnectionTimeout: number

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


asyncStackTraces#

• Optional asyncStackTraces: boolean

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


client#

• Optional client: string | typeof Client

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


connection#

• Optional connection: string | StaticConnectionConfig | ConnectionConfigProvider

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


debug#

• Optional debug: boolean

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


dialect#

• Optional dialect: string

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


log#

• Optional log: Logger

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


migrations#

• Optional migrations: MigratorConfig

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


pool#

• Optional pool: PoolConfig

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


postProcessResponse#

• Optional postProcessResponse: (result: any, queryContext: any) => any

Type declaration:#

â–¸ (result: any, queryContext: any): any

Parameters:#

NameType
resultany
queryContextany

Returns: any

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

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


searchPath#

• Optional searchPath: string | readonly string[]

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


seeds#

• Optional seeds: SeederConfig<SV>

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


useNullAsDefault#

• Optional useNullAsDefault: boolean

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


version#

• Optional version: string

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


wrapIdentifier#

• Optional wrapIdentifier: (value: string, origImpl: (value: string) => string, queryContext: any) => string

Type declaration:#

â–¸ (value: string, origImpl: (value: string) => string, queryContext: any): string

Parameters:#

NameType
valuestring
origImpl(value: string) => string
queryContextany

Returns: string

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

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

Last updated on by Martin Adámek