fluent-plugin-mysql
fluent-plugin-mysql copied to clipboard
Add support for setting the encoding and collation
Simple changes to allow the encoding and collation attributes for mysql2 to be set on the fluent plugin.
This is necessary to enable the writing of utf8mb4 data into mysql out of fluent, as otherwise the connection defaults to utf8 and the conversion fails. You need this to support emoji for example, or any other characters outside of 3 byte UTF-8.
@minusbat Mysql2::Client have collation option? I could not find this option.
https://github.com/brianmario/mysql2
Ah, apparently I imagined that! It does have encoding though, and the patch works. Possibly should remove the collation option if its not actually supported by the mysql2 client library.
Possibly should remove the collation option if its not actually supported by the mysql2 client library.
What is the case when it is support?
ref: https://github.com/tagomoris/fluent-plugin-mysql/issues/53
What is preventing this from entering the package? It's 2024 and this little thing breaks scenarios as soon as an emoji flows into the context.