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

Fixing and testing into_json of various field types #539

Merged
merged 4 commits into from
Mar 24, 2022
Merged

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Feb 17, 2022

PR Info

Fixes

The into_json method does not handle custom types such as chrono, serde_json and rust_decimal. As a result some JSON keys will be in the resulting JSON object.

@yashsamit
Copy link

Additional test cases:

UUID is also missing when using into_json.

@tyt2y3
Copy link
Member

tyt2y3 commented Mar 20, 2022

I guess this is still a WIP? @billy1624
@yashsamit will you be able to open a PR on top of this branch?

@billy1624
Copy link
Member Author

Additional test cases:

UUID is also missing when using into_json.

Hey @yashsamit, good observations! UUID is missing because there is no way to know it's a UUID column on sqlx::Row level

@billy1624 billy1624 marked this pull request as ready for review March 22, 2022 10:46
@billy1624 billy1624 requested a review from tyt2y3 March 22, 2022 10:46
@billy1624
Copy link
Member Author

I guess this is still a WIP? @billy1624 @yashsamit will you be able to open a PR on top of this branch?

Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants