service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationService added in v0.1.3

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

MigrationService for works with migrations

func NewMigrationService added in v0.1.3

func NewMigrationService(repo storeContract, cfg *config.Config) *MigrationService

NewMigrationService returns the new instance

func (*MigrationService) ApplyAllMigrationsDown added in v0.1.3

func (s *MigrationService) ApplyAllMigrationsDown() ([]string, error)

ApplyAllMigrationsDown roll back all migrations

func (*MigrationService) ApplyMigrationsDown added in v0.1.3

func (s *MigrationService) ApplyMigrationsDown() ([]string, error)

ApplyMigrationsDown roll back latest migrations

func (*MigrationService) ApplyMigrationsUp added in v0.1.3

func (s *MigrationService) ApplyMigrationsUp() ([]string, error)

ApplyMigrationsUp rolls out migrations

func (*MigrationService) CreateMigrationFiles added in v0.1.3

func (s *MigrationService) CreateMigrationFiles(migrationName string) ([]string, error)

CreateMigrationFiles creates new migration files for up and down

func (*MigrationService) Prepare added in v0.1.3

func (s *MigrationService) Prepare() error

Prepare application

func (*MigrationService) RefreshMigrations added in v0.1.3

func (s *MigrationService) RefreshMigrations() ([]string, error)

RefreshMigrations cleans of all migrations and roll out them over again

Jump to

Keyboard shortcuts

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