seeds

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SeedsDirectory = utils.SupagrateDirectory + "/seeds"

Variables

This section is empty.

Functions

func EnsureSeedsDirectoryExists

func EnsureSeedsDirectoryExists(fs afero.Fs) string

func GenerateSeedFile

func GenerateSeedFile(fs afero.Fs, filename string) string

Types

type Seed

type Seed struct {
	FileName string
	Content  string
}

func FindSeed

func FindSeed(fs afero.Fs, filename string) Seed

func (Seed) Apply

func (seed Seed) Apply(db *sql.DB)

Jump to

Keyboard shortcuts

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