Skip to main content
Version: 4.5

Class: Seeder#

knex.Knex.Seeder

Constructors#

constructor#

+ new Seeder(knex: Knex<any, unknown[]>): Seeder

Parameters:#

NameType
knexKnex<any, unknown[]>

Returns: Seeder

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

Methods#

make#

make(name: string, config?: SeederConfig<any>): Promise<string>

Parameters:#

NameType
namestring
config?SeederConfig<any>

Returns: Promise<string>

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


run#

run(config?: SeederConfig<any>): Promise<[string[]]>

Parameters:#

NameType
config?SeederConfig<any>

Returns: Promise<[string[]]>

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


setConfig#

setConfig(config: SeederConfig<any>): SeederConfig<any>

Parameters:#

NameType
configSeederConfig<any>

Returns: SeederConfig<any>

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

Last updated on by Martin Adámek