Documentation ¶ Index ¶ type Mode type Options type Seeder func NewSeeder(ctx context.Context, conf *config.Config, fs embed.FS) (*Seeder, error) func (s *Seeder) Run(ctx context.Context, opt *Options) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Mode ¶ type Mode string // Seed mode - UP or DOWN const ( ModeUp Mode = "up" ModeDown Mode = "down" ) type Options ¶ type Options struct { Mode Mode // Seed mode - UP or DOWN Name string // Name of seed file before ".up.sql" or ".down.sql" File string // Full path to seed file } type Seeder ¶ type Seeder struct { // contains filtered or unexported fields } func NewSeeder ¶ func NewSeeder(ctx context.Context, conf *config.Config, fs embed.FS) (*Seeder, error) func (*Seeder) Run ¶ func (s *Seeder) Run(ctx context.Context, opt *Options) (err error) Source Files ¶ View all Source files command.gooptions.go Click to show internal directories. Click to hide internal directories.