migrate

package
v0.0.0-...-0303aaf Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoChange = migrate.ErrNoChange

Functions

This section is empty.

Types

type MigrationService

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

func NewMigrationService

func NewMigrationService(opt ...MigrationServiceOption) (*MigrationService, error)

func (*MigrationService) Close

func (m *MigrationService) Close() (source error, database error)

func (*MigrationService) Down

func (m *MigrationService) Down() error

func (*MigrationService) Up

func (m *MigrationService) Up() error

func (*MigrationService) Versions

func (m *MigrationService) Versions() (version uint, dirty bool, err error)

type MigrationServiceOption

type MigrationServiceOption interface {
	// contains filtered or unexported methods
}

func WithMigrationServiceDatabaseConnectionString

func WithMigrationServiceDatabaseConnectionString(conn string) MigrationServiceOption

Jump to

Keyboard shortcuts

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