task

package
v0.0.0-...-fc4761b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelsTask

func ModelsTask(p *core.Options) core.Task

func New

func New(task *core.Options) core.Task

func NewTasks

func NewTasks(tasks map[string]*core.Options) (core.Tasks, error)

func RepositoryTask

func RepositoryTask(opts *core.Options) core.Task

Types

type Models

type Models struct {
	*core.Options
	NoDriverTemplates bool
	NoContext         bool
	AddSoftDeletes    bool
	NoRowsAffected    bool
	NoHooks           bool
	NoAutoTimestamps  bool
	NoBackReferencing bool
}

func (*Models) Name

func (m *Models) Name() string

func (*Models) Run

func (m *Models) Run(simmer *core.Simmer) error

type Repository

type Repository struct {
	*core.Options
}

func (*Repository) Name

func (r *Repository) Name() string

func (*Repository) Run

func (r *Repository) Run(schema *core.Simmer) error

type Task

type Task struct {
	*core.Options
}

func (*Task) Name

func (t *Task) Name() string

func (*Task) Run

func (t *Task) Run(simmer *core.Simmer) error

Jump to

Keyboard shortcuts

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