Documentation
¶
Index ¶
Constants ¶
View Source
const VITESS_GHOST_TABLE_REGEX = "_vt_([a-zA-Z0-9]{3})_([0-f]{32})_([0-9]{14})_"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
User string
Password string
Address string
ToUser string
ToPassword string
ToAddress string
ToDatabase string
ToEngine string
Database string
DatabaseRegexp string
DatabaseInvertRegexp bool
Shard string
Table string
Outdir string
SessionVars []string
Threads int
ChunksizeInMB int
StmtSize int
Allbytes uint64
Allrows uint64
OverwriteTables bool
SchemaOnly bool
DataOnly bool
ShowDetails bool
StartingTable string
EndingTable string
AllowDifferentDestination bool
MaxQuerySize int
Wheres map[string]string
Selects map[string]map[string]string
Filters map[string]map[string]string
// Interval in millisecond.
IntervalMs int
Debug bool
Printer *printer.Printer
}
Config describes the settings to dump from a database.
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Connection ¶
type Connection struct {
ID int
// contains filtered or unexported fields
}
Connection tuple.
func (*Connection) Execute ¶
func (conn *Connection) Execute(query string) error
Execute used to executes the query.
func (*Connection) Fetch ¶
func (conn *Connection) Fetch(query string) (*sqltypes.Result, error)
Fetch used to fetch the results.
func (*Connection) StreamFetch ¶
func (conn *Connection) StreamFetch(query string) (driver.Rows, error)
StreamFetch used to the results with streaming.
type Files ¶ added in v0.27.0
type Files struct {
// contains filtered or unexported fields
}
Files tuple.
Click to show internal directories.
Click to hide internal directories.