Documentation ¶
Index ¶
- func CreateEngine(dataSourceName string) (*xorm.Engine, error)
- func GetCanalConfig(username string, password string, host string, port int, database string) *canal.Config
- func GetDeleteSql(schemaName string, tableName string, pkColumnNames []string, ...) (string, []interface{}, error)
- func GetInsertSql(schemaName string, tableName string, columnNames []string, ...) (string, []interface{}, error)
- func GetPKColumnNames(columnNames []string, PKColumns []int) []string
- func GetPKColumnValues(columnValues []interface{}, PKColumns []int) []interface{}
- func GetServerId(engin *xorm.Engine) (uint32, error)
- func GetServerUUID(engin *xorm.Engine) (string, error)
- func GetUpdateSql(schemaName string, tableName string, columnNames []string, ...) (string, []interface{}, error)
- func StartBinlogSync() error
- func StartCanal(cfg *canal.Config, username string, password string, host string, port int, ...) error
- type MyEventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCanalConfig ¶ added in v1.260.0
func GetDeleteSql ¶
func GetInsertSql ¶
func GetPKColumnNames ¶ added in v1.260.0
func GetPKColumnValues ¶ added in v1.260.0
func GetPKColumnValues(columnValues []interface{}, PKColumns []int) []interface{}
func GetUpdateSql ¶
func StartBinlogSync ¶
func StartBinlogSync() error
Types ¶
type MyEventHandler ¶
type MyEventHandler struct { GTID string canal.DummyEventHandler // contains filtered or unexported fields }
func GetMyEventHandler ¶ added in v1.260.0
func (*MyEventHandler) OnGTID ¶ added in v1.260.0
func (h *MyEventHandler) OnGTID(header *replication.EventHeader, gtid mysql.GTIDSet) error
func (*MyEventHandler) String ¶
func (h *MyEventHandler) String() string
Click to show internal directories.
Click to hide internal directories.