migrate

package
v1.149.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound for service.

Module for fx.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound for service.

Types

type Migrator

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

Migrator for the different transports.

func NewMigrator

func NewMigrator(cfg *migrate.Config, mig migrator.Migrator) *Migrator

NewMigrator for the different transports.

func (*Migrator) Migrate

func (s *Migrator) Migrate(ctx context.Context, db string, version uint64) ([]string, error)

Migrate the database.

Jump to

Keyboard shortcuts

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