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
| 33 | // NOTE: |
| 34 | // - old_row_based_repl_4_byte_map_id_master mode is not supported. |
| 35 | type 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. |
| 51 | func (e *TableMapEvent) TableId() uint64 { |
nothing calls this directly
no outgoing calls
no test coverage detected