krowinski / php-mysql-replication

Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.
MIT License
323 stars 98 forks source link

Event id is always same #83

Closed jasimaz closed 10 months ago

jasimaz commented 3 years ago

Please provide the following details.

Steps required to reproduce the problem.

Read all the events

Expected Result.

Each event should have a unique id

Actual Result.

krowinski commented 3 years ago

ok its misleading name is a "server Id" not an event "id"

I future I will change to server id.

jasimaz commented 3 years ago

HI @krowinski ,

Thank you for the response. Can you also tell me if there is a way to get unique id for each message. It is possible or anyway available ?

Regards,

krowinski commented 10 months ago

there is no id that mysql generate for event you can try to create hash using binary file + binarny position

krowinski commented 10 months ago

changed to server id in #104