seed

package
v0.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL