database

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

type DumpUtilityVersionDetector

type DumpUtilityVersionDetector interface {
	GetVersion() (version.SemanticVersion, error)
}

type Factory

type Factory interface {
	Make(Action, config.ConnectionConfig) Interactor
}

type Interactor

type Interactor interface {
	Action(artifactFilePath string) error
}

type InteractorFactory

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

func NewInteractorFactory

func NewInteractorFactory(
	utilitiesConfig config.UtilitiesConfig,
	postgresServerVersionDetector ServerVersionDetector,
	mysqlServerVersionDetector ServerVersionDetector,
	tempFolderManager config.TempFolderManager) InteractorFactory

func (InteractorFactory) Make

func (f InteractorFactory) Make(action Action, connectionConfig config.ConnectionConfig) (Interactor, error)

type ServerVersionDetector

type ServerVersionDetector interface {
	GetVersion(config.ConnectionConfig, config.TempFolderManager) (version.DatabaseServerVersion, error)
}

type TableChecker

type TableChecker interface {
	FindMissingTables(tableNames []string) ([]string, error)
}

type TableCheckingInteractor

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

func NewTableCheckingInteractor

func NewTableCheckingInteractor(
	config config.ConnectionConfig,
	tableChecker TableChecker,
	interactor Interactor) TableCheckingInteractor

func (TableCheckingInteractor) Action

func (i TableCheckingInteractor) Action(artifactFilePath string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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