cempty

package
v4.13.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *Options) (*genny.Generator, error)

New creates a generator to make empty migration files.

Types

type Options

type Options struct {
	// TableName is the name of the table.
	TableName string
	// Name is the name of the generated file.
	Name string
	// Path is the dir path where to generate the migration files.
	Path string
	// Translator is a Fizz translator to use when asking for SQL migrations.
	Translator nameable
	// Type is the type of migration to generate (sql or fizz).
	Type string
}

Options for the empty migration generator.

func (*Options) Validate

func (opts *Options) Validate() error

Validate that options are usuable

Jump to

Keyboard shortcuts

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