Documentation
¶
Index ¶
- Variables
- type BinlogParser
- type MyDumper
- func (d *MyDumper) AddDatabases(dbs ...string)
- func (d *MyDumper) AddIgnoreTables(db string, tables ...string)
- func (d *MyDumper) AddTables(db string, tables ...string)
- func (d *MyDumper) Dump(w io.Writer) error
- func (d *MyDumper) ImportSql(sqlFilePath string, toServer string, toDB string)
- func (d *MyDumper) Reset()
- func (d *MyDumper) SetCharset(charset string)
- func (d *MyDumper) SetErrOut(o io.Writer)
- func (d *MyDumper) SetExtraOptions(options []string)
- func (d *MyDumper) SetHexBlob(v bool)
- func (d *MyDumper) SetMaxAllowedPacket(i int)
- func (d *MyDumper) SetProtocol(protocol string)
- func (d *MyDumper) SetWhere(where string)
- func (d *MyDumper) SkipMasterData(v bool)
- func (d *MyDumper) WaitDumpDone() <-chan struct{}
- type PipeLine
- type QueryRequest
- type Rule
- type SimpleCanalDBConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRuleNotExist = errors.New("rule is not exist")
ErrRuleNotExist is the error if rule is not defined.
View Source
var ErrTableNotExist = "table is not exist"
Functions ¶
This section is empty.
Types ¶
type BinlogParser ¶
type BinlogParser struct{}
func (*BinlogParser) GetBinLogData ¶
func (m *BinlogParser) GetBinLogData(element interface{}, e *canal.RowsEvent, n int) error
type MyDumper ¶
type MyDumper struct { // mysqldump execution path, like mysqldump or /usr/bin/mysqldump, etc... ExecutionPath string Addr string User string Password string Protocol string // Will override Databases Tables []string TableDB string Databases []string Where string Charset string IgnoreTables map[string][]string ExtraOptions []string ErrOut io.Writer // contains filtered or unexported fields }
func NewMyDumper ¶
func (*MyDumper) AddDatabases ¶
func (*MyDumper) AddIgnoreTables ¶
func (*MyDumper) SetCharset ¶
func (*MyDumper) SetExtraOptions ¶
func (*MyDumper) SetHexBlob ¶
func (*MyDumper) SetMaxAllowedPacket ¶
func (*MyDumper) SetProtocol ¶
func (*MyDumper) SkipMasterData ¶
SkipMasterData: In some cloud MySQL, we have no privilege to use `--master-data`.
func (*MyDumper) WaitDumpDone ¶
func (d *MyDumper) WaitDumpDone() <-chan struct{}
type PipeLine ¶
type PipeLine struct {
// contains filtered or unexported fields
}
func NewPipeLine ¶
NewPipeLine creates the PipeLine from config
type QueryRequest ¶
type Rule ¶
type Rule struct { DB string `toml:"db"` Table string `toml:"table"` ToDBServer string `toml:"to_dbserver"` ToDB string `toml:"to_db"` RawKey string `toml:"keys"` PKColumnIds []int //build unique where condition base on PKColumns WherePK string // // MySQL table information TableInfo *schema.Table }
type SimpleCanalDBConfig ¶
Click to show internal directories.
Click to hide internal directories.