cempty

package
v6.102.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 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.
	// Deprecated: use Name directly since TableName doesn't make sense in this generator.
	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 usable

Jump to

Keyboard shortcuts

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