newscripts

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NextScript

type NextScript struct {
	ScriptAction ScriptAction
	Names        *ScriptNames
}

func GetNextScriptName

func GetNextScriptName(migration *migrate.Migrate, options *Options) *NextScript

func (*NextScript) WriteScripts

func (next *NextScript) WriteScripts(migrationOps checkmigration.MigrationOps, options *Options)

type Options

type Options struct {
	ScriptsInRoot   string
	NewScriptPrefix func(version uint) (prefix string)
	DryRun          bool
	SurveyWritten   bool
	DefaultSuffix   string
}

func NewOptions

func NewOptions(scriptsInRoot string) *Options

type ScriptAction

type ScriptAction string
const (
	CreateScript ScriptAction = "create-script"
	ModifyScript ScriptAction = "modify-script"
)

type ScriptNames

type ScriptNames struct {
	ForwardName string
	ReverseName string
}

Jump to

Keyboard shortcuts

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