Skip to main content

Interface: SeedModule

Defined in: src/seeding/SeedRunner.ts:3

Methods​

run()​

run(adapter): Promise<void>

Defined in: src/seeding/SeedRunner.ts:20

The seeding function that inserts or upserts data. Receives the database adapter for raw SQL operations. For higher-level access, pass the full DbContext from your application code.

Parameters​

ParameterType
adapterIDbAdapter

Returns​

Promise<void>

Properties​

id​

id: string

Defined in: src/seeding/SeedRunner.ts:8

Unique, stable identifier for this seed (e.g. '20240101_seed_roles'). Used to track whether the seed has already been applied.


name​

name: string

Defined in: src/seeding/SeedRunner.ts:13

Human-readable name for display in db:seed:status output.