diff --git a/src/MySqlCdc/Events/EventDeserializer.cs b/src/MySqlCdc/Events/EventDeserializer.cs index e136460..0a595e8 100644 --- a/src/MySqlCdc/Events/EventDeserializer.cs +++ b/src/MySqlCdc/Events/EventDeserializer.cs @@ -36,6 +36,7 @@ protected EventDeserializer() EventParsers[EventType.RotateEvent] = new RotateEventParser(); EventParsers[EventType.IntvarEvent] = new IntVarEventParser(); + EventParsers[EventType.RandEvent] = new RandEventParser(); EventParsers[EventType.UserVarEvent] = new UserVarEventParser(); EventParsers[EventType.QueryEvent] = new QueryEventParser(); EventParsers[EventType.XidEvent] = new XidEventParser(); diff --git a/src/MySqlCdc/MySqlCdc.csproj b/src/MySqlCdc/MySqlCdc.csproj index 5b1fb2c..4f8c578 100644 --- a/src/MySqlCdc/MySqlCdc.csproj +++ b/src/MySqlCdc/MySqlCdc.csproj @@ -17,6 +17,7 @@ This version includes following changes: 1)Targets .NET 8 2)Separated Header from BinlogEvent. 3)Events are now declared as records. +4)Added RandEvent. true README.md diff --git a/src/MySqlCdc/README.md b/src/MySqlCdc/README.md index 7073736..6459da0 100644 --- a/src/MySqlCdc/README.md +++ b/src/MySqlCdc/README.md @@ -216,13 +216,6 @@ using (Stream stream = File.OpenRead("mysql-bin.000001")) - GEOMETRY type is read as `byte[]` but there is no parser that constructs .NET objects. - DECIMAL type is parsed to string as MySql decimal has bigger range(65 digits) than .NET decimal. -## Similar projects -The project is based on [mysql-binlog-connector-java](https://github.com/shyiko/mysql-binlog-connector-java) library, [MariaDB](https://mariadb.com/kb/en/replication-protocol/) and MySQL documentation. -- Rust: https://github.com/rusuly/mysql_cdc -- Java: https://github.com/shyiko/mysql-binlog-connector-java -- PHP: https://github.com/krowinski/php-mysql-replication -- Python: https://github.com/noplay/python-mysql-replication - ## Supported versions MySqlCdc supports both MariaDB & MySQL server. @@ -242,4 +235,4 @@ MySqlCdc supports both MariaDB & MySQL server. | 8.0 | ✅ Supported | ## License -The library is provided under the [MIT License](LICENSE). +The library is provided under the [MIT License](LICENSE). \ No newline at end of file