add more info
This commit is contained in:
parent
b981b331e8
commit
393275a195
4
parse.go
4
parse.go
@ -15,6 +15,8 @@ type TxDetail struct {
|
|||||||
StartPos int
|
StartPos int
|
||||||
EndPos int
|
EndPos int
|
||||||
RowCount int
|
RowCount int
|
||||||
|
Timestamp int64
|
||||||
|
Time time.Time
|
||||||
Sql string
|
Sql string
|
||||||
Db string
|
Db string
|
||||||
Table string
|
Table string
|
||||||
@ -196,6 +198,8 @@ func parseBinlogDetail(r io.Reader, f func(Transaction)) error {
|
|||||||
Sql: sql,
|
Sql: sql,
|
||||||
SqlType: sqlType,
|
SqlType: sqlType,
|
||||||
RowCount: int(rowCnt),
|
RowCount: int(rowCnt),
|
||||||
|
Timestamp: int64(h.Timestamp),
|
||||||
|
Time: time.Unix(int64(h.Timestamp), 0),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user