Documentation
¶
Overview ¶
Package seeder provides the database seeder system for OniWorks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner manages and executes seeders.
type Seeder ¶
type Seeder interface {
// Run populates the database with seed data. It receives the live
// *database.DB so it has the full query-builder API (Insert, InsertMap,
// Table, transactions, …).
Run(ctx context.Context, db *database.DB) error
}
Seeder is the interface all seeder structs must implement.
Click to show internal directories.
Click to hide internal directories.