Documentation ¶
Index ¶
Constants ¶
View Source
const VITESS_GHOST_TABLE_REGEX = "_vt_EVAC_.*|_vt_DROP_.*|_vt_PURGE_.*|_vt_HOLD_.*|_[0-9a-zA-Z]{8}_[0-9a-zA-Z]{4}_[0-9a-zA-Z]{4}_.*"
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 UseReplica bool UseRdonly bool Wheres map[string]string Selects map[string]map[string]string Filters map[string]map[string]string // Interval in millisecond. IntervalMs int Debug bool }
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.