Documentation
¶
Index ¶
- type BinlogDMLEvent
- type BinlogEntry
- type BinlogReader
- type EventDML
- type GoMySQLReader
- func (this *GoMySQLReader) Close() error
- func (this *GoMySQLReader) ConnectBinlogStreamer(coordinates mysql.BinlogCoordinates) (err error)
- func (this *GoMySQLReader) GetCurrentBinlogCoordinates() mysql.BinlogCoordinates
- func (this *GoMySQLReader) StreamEvents(canStopStreaming func() bool, entriesChannel chan<- *BinlogEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinlogDMLEvent ¶
type BinlogDMLEvent struct {
DatabaseName string
TableName string
DML EventDML
WhereColumnValues *sql.ColumnValues
NewColumnValues *sql.ColumnValues
}
BinlogDMLEvent is a binary log rows (DML) event entry, with data
func NewBinlogDMLEvent ¶
func NewBinlogDMLEvent(databaseName, tableName string, dml EventDML) *BinlogDMLEvent
func (*BinlogDMLEvent) String ¶
func (this *BinlogDMLEvent) String() string
type BinlogEntry ¶
type BinlogEntry struct {
Coordinates mysql.BinlogCoordinates
DmlEvent *BinlogDMLEvent
}
BinlogEntry describes an entry in the binary log
func NewBinlogEntryAt ¶
func NewBinlogEntryAt(coordinates mysql.BinlogCoordinates) *BinlogEntry
NewBinlogEntryAt creates an empty, ready to go BinlogEntry object
func (*BinlogEntry) String ¶
func (this *BinlogEntry) String() string
String() returns a string representation of this binlog entry
type BinlogReader ¶
type BinlogReader interface {
StreamEvents(canStopStreaming func() bool, entriesChannel chan<- *BinlogEntry) error
Reconnect() error
}
BinlogReader is a general interface whose implementations can choose their methods of reading a binary log file and parsing it into binlog entries
type GoMySQLReader ¶
type GoMySQLReader struct {
// LastTrxCoords are the coordinates of the last transaction completely read.
// If using the file coordinates it is binlog position of the transaction's XID event.
LastTrxCoords mysql.BinlogCoordinates
// contains filtered or unexported fields
}
func NewGoMySQLReader ¶
func NewGoMySQLReader(migrationContext *base.MigrationContext) *GoMySQLReader
func (*GoMySQLReader) Close ¶ added in v1.0.28
func (this *GoMySQLReader) Close() error
func (*GoMySQLReader) ConnectBinlogStreamer ¶
func (this *GoMySQLReader) ConnectBinlogStreamer(coordinates mysql.BinlogCoordinates) (err error)
ConnectBinlogStreamer
func (*GoMySQLReader) GetCurrentBinlogCoordinates ¶ added in v0.7.16
func (this *GoMySQLReader) GetCurrentBinlogCoordinates() mysql.BinlogCoordinates
func (*GoMySQLReader) StreamEvents ¶
func (this *GoMySQLReader) StreamEvents(canStopStreaming func() bool, entriesChannel chan<- *BinlogEntry) error
StreamEvents
Click to show internal directories.
Click to hide internal directories.