command

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Input Input
}

func New

func New(input Input) *Action

func (*Action) Exec

func (a *Action) Exec() error

type Config

type Config struct {
	Migrations Migrations `yaml:"migrations"`
}

type Connection

type Connection struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

type Database

type Database struct {
	Group      string     `yaml:"group"`
	Folder     string     `yaml:"folder"`
	Connection Connection `yaml:"connection"`
}

type Input

type Input struct {
	Command            string
	Database           string
	LocalMigrateConfig string
	Group              string
	All                bool
	Version            int64
	NumberMigrations   int64
}

type Migrations

type Migrations struct {
	BasePath  string              `yaml:"base_path"`
	Databases map[string]Database `yaml:"databases"`
}

Jump to

Keyboard shortcuts

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