MCPcopy
hub / github.com/dropbox/godropbox / TableMapEvent

Struct TableMapEvent

database/binlog/table_map_event.go:35–48  ·  view source on GitHub ↗

A representation of the table map event. Common to both 5.5 and 5.6: 19 bytes for common v4 event header 6 bytes (uint64) for table id 2 bytes (uint16) for flags (as of 5.6, this is always 0) 1 byte (uint8), x, for db name length (WARNING: mysql assumes the db name length is always less than 255; t

Source from the content-addressed store, hash-verified

33// NOTE:
34// - old_row_based_repl_4_byte_map_id_master mode is not supported.
35type TableMapEvent struct {
36 Event
37
38 tableId uint64
39 tableFlags uint16
40 databaseName []byte
41 tableName []byte
42
43 columnTypesBytes []byte
44 metadataBytes []byte
45 nullColumnsBytes []byte
46
47 columnDescriptors []ColumnDescriptor
48}
49
50// TableId returns which table the following row event entries should act on.
51func (e *TableMapEvent) TableId() uint64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected