Help us shape the future of Go! Take the 2026 Go Developer Survey

scripts

package
v0.9.31 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ORMAlters

func ORMAlters() *service.DefinitionGlobal

func Seeder added in v0.8.55

func Seeder(seeds map[string]Seed, ormService *beeorm.Engine)

Types

type DBSeedScript added in v0.8.55

type DBSeedScript struct {
	Seeds map[string]Seed
}

func (*DBSeedScript) Description added in v0.8.55

func (script *DBSeedScript) Description() string

func (*DBSeedScript) Run added in v0.8.55

func (script *DBSeedScript) Run(ctx context.Context, _ hitrix.Exit)

func (*DBSeedScript) Unique added in v0.8.55

func (script *DBSeedScript) Unique() bool

type ORMAltersScript

type ORMAltersScript struct {
}

func (*ORMAltersScript) Active

func (script *ORMAltersScript) Active() bool

func (*ORMAltersScript) Description

func (script *ORMAltersScript) Description() string

func (*ORMAltersScript) Run

func (script *ORMAltersScript) Run(_ context.Context, exit hitrix.Exit)

func (*ORMAltersScript) Unique

func (script *ORMAltersScript) Unique() bool

type Seed added in v0.8.55

type Seed interface {
	Execute(*beeorm.Engine)
	Version() int
}

Jump to

Keyboard shortcuts

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