commands

package
v0.0.0-...-291973b Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFilePath

type ConfigFilePath string

func (*ConfigFilePath) UnmarshalFlag

func (c *ConfigFilePath) UnmarshalFlag(value string) error

type MigrateCommand

type MigrateCommand struct {
	Truncate bool `long:"truncate" description:"Truncate destination tables before migrating data"`
}

func (*MigrateCommand) Execute

func (c *MigrateCommand) Execute([]string) error

type PG2MySQLCommand

type PG2MySQLCommand struct {
	Config pg2mysql.Config

	ConfigFile ConfigFilePath `short:"c" long:"config" required:"true" description:"Path to config file"`

	Validate ValidateCommand `command:"validate" description:"Validate that the data in PostgreSQL can be migrated to MySQL"`
	Migrate  MigrateCommand  `command:"migrate" description:"Migrate data from PostgreSQL to MySQL"`
	Verify   VerifyCommand   `command:"verify" description:"Verify migrated data matches"`
}
var PG2MySQL PG2MySQLCommand

type ValidateCommand

type ValidateCommand struct{}

func (*ValidateCommand) Execute

func (c *ValidateCommand) Execute([]string) error

type VerifyCommand

type VerifyCommand struct{}

func (*VerifyCommand) Execute

func (c *VerifyCommand) Execute([]string) error

Jump to

Keyboard shortcuts

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