migrator

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, cmd *cli.Command) 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, cmd *cli.Command) 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, _ *cli.Command) error

Jump to

Keyboard shortcuts

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