db

package
v4.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	GetTenants() []string
	GetAppliedMigrations() []types.MigrationDB
	ApplyMigrations(types.MigrationsModeType, []types.Migration) *types.MigrationResults
	AddTenantAndApplyMigrations(types.MigrationsModeType, string, []types.Migration) *types.MigrationResults
	Dispose()
}

Connector interface abstracts all DB operations performed by migrator

func New

func New(ctx context.Context, config *config.Config) Connector

New constructs Connector instance based on the passed Config

type Factory

type Factory func(context.Context, *config.Config) Connector

Factory is a factory method for creating Loader instance

Jump to

Keyboard shortcuts

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