Documentation ¶
Index ¶
Constants ¶
View Source
const ( //MarkTableName mark table name MarkTableName = "retl._drainer_repl_mark" //ID syncer worker coroutine id ID = "id" //ChannelID channel id ChannelID = "channel_id" //Val val Val = "val" //ChannelInfo channel info ChannelInfo = "channel_info" )
Variables ¶
View Source
var CreateMarkDBDDL = "create database IF NOT EXISTS retl;"
CreateMarkDBDDL is DDL to create the database of mark table.
View Source
var CreateMarkTableDDL string = fmt.Sprintf("CREATE TABLE If Not Exists %s (%s bigint not null,%s bigint not null DEFAULT 0, %s bigint DEFAULT 0, %s varchar(64) ,PRIMARY KEY (%s,%s));", MarkTableName, ID, ChannelID, Val, ChannelInfo, ID, ChannelID)
CreateMarkTableDDL is the DDL to create the mark table.
Functions ¶
func CleanMarkTableData ¶
CleanMarkTableData clean up the data in mark table.
func CreateMarkTable ¶
CreateMarkTable create the db and table if need.
func InitMarkTableData ¶
InitMarkTableData init rowNum rows in the mark table for channelID.
Types ¶
type LoopBackSync ¶
LoopBackSync loopback sync info
func NewLoopBackSyncInfo ¶
func NewLoopBackSyncInfo(ChannelID int64, LoopbackControl, SyncDDL bool) *LoopBackSync
NewLoopBackSyncInfo return LoopBackSyncInfo objec
Click to show internal directories.
Click to hide internal directories.