Skip to content

Commit

Permalink
Adjusted EventDeserializer for RandEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
rusuly committed Dec 11, 2023
1 parent 49fc4aa commit 46cb108
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/MySqlCdc/Events/EventDeserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/MySqlCdc/MySqlCdc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</PackageReleaseNotes>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
9 changes: 1 addition & 8 deletions src/MySqlCdc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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).

0 comments on commit 46cb108

Please sign in to comment.