Documentation
¶
Index ¶
- func AssertNil(err error)
- func Dumper(log *xlog.Log, args *config.Config, listener MyDumperListener)
- func EscapeBytes(bytes []byte) []byte
- func Loader(log *xlog.Log, args *config.Config)
- func ParseDumperConfigStruct(dumpNode *DumpNode) (*config.Config, error)
- func ReadFile(file string) ([]byte, error)
- func WriteFile(file string, data string) error
- type Connection
- type DumpNode
- type Files
- type MyDumperListener
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dumper ¶
func Dumper(log *xlog.Log, args *config.Config, listener MyDumperListener)
Dumper used to start the dumper worker.
func EscapeBytes ¶
EscapeBytes used to escape the literal byte.
func ParseDumperConfigStruct ¶
* 读取结构体配置
Types ¶
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 MyDumperListener ¶
type MyDumperListener interface { Start(time string, dataBase string, table string, rags *config.Config) StartNode(time string, dataBase string, table string, args *config.Config, connection *Connection) DoneNode(time string, dataBase string, table string, args *config.Config, connection *Connection) PendingNode(time string, dataBase string, table string, allrows uint64, allbytes uint64, rates float64) Done(time string, dataBase string, table string, args *config.Config, allrows uint64, allbytes uint64, rates float64) }
Click to show internal directories.
Click to hide internal directories.