migrator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManifesto

func NewManifesto() module.Manifesto

func NewModule

func NewModule() *module.Module

func ProvideMigrationFS

func ProvideMigrationFS(migrationFS fs.FS) interface{}

Types

type CreateCommandParams

type CreateCommandParams struct {
	fx.In

	Fs  []fs.FS `group:"migrator.migration-fs"`
	Pgx pgx.ModuleConfig
}

type Migrate

type Migrate struct {
	// contains filtered or unexported fields
}

func NewMigrate

func NewMigrate(params CreateCommandParams) *Migrate

func (*Migrate) Command

func (c *Migrate) Command() *cli.Command

func (*Migrate) Invoke

func (c *Migrate) Invoke(ctx context.Context) error

type ModuleConfig

type ModuleConfig struct {
}

type Rollback

type Rollback struct {
	// contains filtered or unexported fields
}

func NewRollback

func NewRollback(params CreateCommandParams) *Rollback

func (*Rollback) Command

func (c *Rollback) Command() *cli.Command

func (*Rollback) Invoke

func (c *Rollback) Invoke(ctx context.Context) error

type RollbackAll

type RollbackAll struct {
	// contains filtered or unexported fields
}

func NewRollbackAll

func NewRollbackAll(params CreateCommandParams) *RollbackAll

func (*RollbackAll) Command

func (c *RollbackAll) Command() *cli.Command

func (*RollbackAll) Invoke

func (c *RollbackAll) Invoke(ctx context.Context) error

Jump to

Keyboard shortcuts

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