@ -15,6 +15,8 @@ type TxDetail struct {
StartPos int
EndPos int
RowCount int
Timestamp int64
Time time.Time
Sql string
Db string
Table string
@ -196,6 +198,8 @@ func parseBinlogDetail(r io.Reader, f func(Transaction)) error {
Sql: sql,
SqlType: sqlType,
RowCount: int(rowCnt),
Timestamp: int64(h.Timestamp),
Time: time.Unix(int64(h.Timestamp), 0),
})
}