mysql-binlog-go:用于反序列化 MySQL 5.6 二进制日志的库

时间:2021-06-26 20:08:34
【文件属性】:
文件名称:mysql-binlog-go:用于反序列化 MySQL 5.6 二进制日志的库
文件大小:30KB
文件格式:ZIP
更新时间:2021-06-26 20:08:34
Go mysql-binlog-go 正在开发中(请勿使用) 该库旨在将 mysql 二进制日志解析为结构,然后您可以以任何您想要的方式进行操作。 我目前没有计划支持 MySQL 5.6 以外的任何版本(使用 v4 格式和发布 5.6.4 时间变量)。 用法 import ( ... binlog "github.com/granicus/mysql-binlog-go" ) ... log, err := binlog.OpenBinlog("mysql-bin.000001") if err != nil { panic(err) } for _, event := range log.Events() { if event.Type() == binlog.WRITE_ROWS_EVENTv2 { rowsEvent := event.Data().(*binlog
【文件预览】:
mysql-binlog-go-master
----bitset()
--------bitset.go(2KB)
--------bitset_test.go(569B)
----docs()
--------table_map_metadata.html(5KB)
----appendable_buffer.go(1KB)
----row_image.go(6KB)
----rows_event.go(3KB)
----streaming_binlog.go(1KB)
----column_metadata.go(4KB)
----table_map_event.go(3KB)
----binlog.go(6KB)
----common.go(184B)
----.gitignore(16B)
----mysql_constants.go(6KB)
----date()
--------date.go(2KB)
----event.go(2KB)
----row_image_test.go(5KB)
----README.md(747B)
----connector()
--------client_capabilities.go(749B)
--------connection.go(1KB)
--------main_test.go(206B)
--------packet_listener.go(3KB)
--------greeting_packet.go(3KB)
--------authentication_command.go(6KB)
----binlog_tailer.go(2KB)
----deserialization()
--------deserialization_helpers.go(5KB)
--------deserialization_helpers_test.go(1KB)
--------time_deserialization_helpers.go(5KB)
--------common.go(283B)

网友评论