Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake Serializer does not work in both directions #313

Closed
NyCodeGHG opened this issue Jun 13, 2021 · 0 comments · Fixed by #316
Closed

Snowflake Serializer does not work in both directions #313

NyCodeGHG opened this issue Jun 13, 2021 · 0 comments · Fixed by #316

Comments

@NyCodeGHG
Copy link
Contributor

NyCodeGHG commented Jun 13, 2021

When using Snowflakes in a database, for example with kotlinx.serialization and KMongo, you can easily serialize the snowflake and write it to the db. But when you try to read it again, you get an exception because Kord tries to read a long, but it was saved as a String. It would be better when the de/-serialization would be consistent.

@BartArys BartArys linked a pull request Jun 14, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant