scripts

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT 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