create

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scaffold

func Scaffold(opts Options) (upPath, downPath string, err error)

Scaffold writes paired up/down YAML files with the next sequential version.

Types

type Options

type Options struct {
	Dir           string
	Name          string
	Width         int // zero -> default 4
	SchemaVersion int // defaults to 1
}

Options controls creation of new migration files.

Jump to

Keyboard shortcuts

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