cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncWaiting      = "waiting"
	SyncRunning      = "running"
	CompareFailed    = "compare_fail"
	CompareSuccess   = "compare_succ"
	StatusInitialize = "init"
	StatusWaiting    = "waiting"
	StatusRunning    = "Running"
	StatusFailed     = "failed"
	StatusSuccess    = "success"
)

Variables

View Source
var ProcessBar *pkg.Bar

Functions

func Execute

func Execute() error

Execute executes the root command.

func ReadSQLFile

func ReadSQLFile(filePath string, delimiter string) []string

Types

type CtlTemplate

type CtlTemplate struct {
	Character         string
	FilePath          string
	BadFilePath       string
	DiscardFilePath   string
	TableOracleSchema string
	TableName         string
	Terminator        string
	Columns           string
}

type LightingTomlTemplate

type LightingTomlTemplate struct {
	BatchID     string
	DumpDataDir string
	TiDBDB      config.DBConfig
}

type SyncDiffTemplate

type SyncDiffTemplate struct {
	ChunkSize         int
	CheckThreadCount  int
	SyncTableName     string
	TableSchema       string
	TableOracleSchema string
	TableName         string
	OracleDB          config.OracleDBConfig
	TiDBDB            config.DBConfig
	SnapSource        string
	SnapTarget        string
	IgnoreCols        string
	LogDir            string
	FilterClauseTidb  string
	FilterClauseOra   string
	IndexFields       string
	OracleHint        string
	TidbHint          string
}

Jump to

Keyboard shortcuts

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