fizz

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExpressionNotMatch error = errors.New("generator do not match a valid expression")
	ErrNoColumnFound      error = errors.New("no arguments was received, at least 1 column is required")
	ErrNoTableName        error = errors.New("no table name")
)

Errors

View Source
var ErrInvalidRenamer error = errors.New("invalid renamer, please write a valid argument")

Functions

This section is empty.

Types

type Creator

type Creator struct{}

FizzCreator model struct for fizz generation files

func (Creator) Create

func (f Creator) Create(dir, name string, args []string) error

Create will create 2 .fizz files for the migration

func (Creator) Creates

func (f Creator) Creates(mtype string) bool

Creates a type or not

func (Creator) Name

func (f Creator) Name() string

Name is the name of the migration type

type MigrationGenerator

type MigrationGenerator interface {
	GenerateFizz(string, []string) (string, string, error)
	// contains filtered or unexported methods
}

type MigrationGenerators

type MigrationGenerators []MigrationGenerator

func (MigrationGenerators) GeneratorFor

func (a MigrationGenerators) GeneratorFor(name string) MigrationGenerator

Jump to

Keyboard shortcuts

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