copydb

package
v0.0.0-...-cf24988 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerifierTypeChecksumTable  = "ChecksumTable"
	VerifierTypeIterative      = "Iterative"
	VerifierTypeNoVerification = "NoVerification"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*ghostferry.Config

	Databases    FilterAndRewriteConfigs
	Tables       FilterAndRewriteConfigs
	VerifierType string
}

func (*Config) InitializeAndValidateConfig

func (c *Config) InitializeAndValidateConfig() error

type CopydbFerry

type CopydbFerry struct {
	Ferry *ghostferry.Ferry
	// contains filtered or unexported fields
}

func NewFerry

func NewFerry(config *Config) *CopydbFerry

func (*CopydbFerry) CreateDatabasesAndTables

func (this *CopydbFerry) CreateDatabasesAndTables() error

func (*CopydbFerry) Initialize

func (this *CopydbFerry) Initialize() error

func (*CopydbFerry) Run

func (this *CopydbFerry) Run()

func (*CopydbFerry) ShutdownControlServer

func (this *CopydbFerry) ShutdownControlServer() error

func (*CopydbFerry) Start

func (this *CopydbFerry) Start() error

type FilterAndRewriteConfigs

type FilterAndRewriteConfigs struct {
	Whitelist []string
	Blacklist []string
	Rewrites  map[string]string
}

With nothing specified, it assumes that everything is applicable.

func (FilterAndRewriteConfigs) Validate

func (f FilterAndRewriteConfigs) Validate() error

type StaticTableFilter

type StaticTableFilter struct {
	Dbs            []string
	DbsIsBlacklist bool

	Tables            []string
	TablesIsBlacklist bool
}

func NewStaticTableFilter

func NewStaticTableFilter(dbs, tables FilterAndRewriteConfigs) *StaticTableFilter

func (*StaticTableFilter) ApplicableDatabases

func (s *StaticTableFilter) ApplicableDatabases(dbs []string) ([]string, error)

func (*StaticTableFilter) ApplicableTables

func (s *StaticTableFilter) ApplicableTables(tables []*schema.Table) ([]*schema.Table, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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