Documentation ¶
Overview ¶
日志模式同步 update 转成 insert on update insert 转成 replace into delete 转成 insert on update 只要是同一条数据,只要有遍历过,后面遍历出来的数据,则不再进行操作
普通模式同步 update 转成 insert on update insert 转成 replace into delete 转成 delete 只要是同一条数据,只要有遍历过,后面遍历出来的数据,则不再进行操作
Index ¶
- Constants
- func NewMysqlDBConn(uri string) *mysqlDB
- type Conn
- func (This *Conn) Close() bool
- func (This *Conn) Commit() (b *pluginDriver.PluginBinlog, e error)
- func (This *Conn) CommitLogMod_Append(list []*pluginDriver.PluginDataType) (e error)
- func (This *Conn) CommitLogMod_Update(list []*pluginDriver.PluginDataType) (e error)
- func (This *Conn) CommitNormal(list []*pluginDriver.PluginDataType) (e error)
- func (This *Conn) Connect() bool
- func (This *Conn) Del(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
- func (This *Conn) GetConnStatus() string
- func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
- func (This *Conn) HeartCheck()
- func (This *Conn) Insert(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
- func (This *Conn) Query(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
- func (This *Conn) ReConnect() bool
- func (This *Conn) SetConnStatus(status string)
- func (This *Conn) SetParam(p interface{}) (interface{}, error)
- func (This *Conn) StmtClose()
- func (This *Conn) Update(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
- type EventType
- type MyConn
- type PluginParam
- type SyncMode
- type TableStruct
Constants ¶
View Source
const BIFROST_VERION = "v1.3.2"
View Source
const VERSION = "v1.3.2"
Variables ¶
This section is empty.
Functions ¶
func NewMysqlDBConn ¶
func NewMysqlDBConn(uri string) *mysqlDB
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Commit ¶
func (This *Conn) Commit() (b *pluginDriver.PluginBinlog, e error)
func (*Conn) CommitLogMod_Append ¶ added in v1.2.2
func (This *Conn) CommitLogMod_Append(list []*pluginDriver.PluginDataType) (e error)
func (*Conn) CommitLogMod_Update ¶ added in v1.2.2
func (This *Conn) CommitLogMod_Update(list []*pluginDriver.PluginDataType) (e error)
func (*Conn) CommitNormal ¶ added in v1.2.2
func (This *Conn) CommitNormal(list []*pluginDriver.PluginDataType) (e error)
func (*Conn) Del ¶
func (This *Conn) Del(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
func (*Conn) GetConnStatus ¶
func (*Conn) GetParam ¶
func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
func (*Conn) HeartCheck ¶
func (This *Conn) HeartCheck()
func (*Conn) Insert ¶
func (This *Conn) Insert(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
func (*Conn) Query ¶
func (This *Conn) Query(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
func (*Conn) SetConnStatus ¶
func (*Conn) Update ¶
func (This *Conn) Update(data *pluginDriver.PluginDataType) (*pluginDriver.PluginBinlog, error)
type PluginParam ¶
Click to show internal directories.
Click to hide internal directories.