migrator

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atlas

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

func NewAtlasMigrator

func NewAtlasMigrator(options *AtlasOptions) *Atlas

func (*Atlas) Migrate

func (a *Atlas) Migrate(ctx context.Context, dsn string) (*db.MigrationResult, error)

type AtlasOptions

type AtlasOptions struct {
	MigrationDir    string
	AtlasBinaryPath string
	AtlasBinaryName string
	BaselineVersion string
	AllowDirty      bool
	RevisionSchema  string
}

Jump to

Keyboard shortcuts

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