sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Documentation request for using Serialize,Deserialize properly with different data types

Open option-greek opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently it's not very obvious when/how the serialization and deserialization with serde work and when they do not. To make it work we need to jump through a bunch of hoops not documented any where (at least I couldn't find them except for a very old issue).

Describe the solution you'd like Document that the dependency versions need to match and that the crates being included should enable the serde feature on dependent crates like uuid and chrono.

Describe alternatives you've considered Alternative I have considered (and went through) is searching through issue list for old issues, searching google, going through sqlx code, hurting the table with my head etc. Basically do not want others to go through the same.

Additional context My guess is that out of every 100 users using sqlx, 99 would use uuid and chrono crates at the minimum and have uuid and datetime types in their tables. Lacking such basic functionality documented anywhere is not good for promoting sqlx anywhere.

option-greek avatar Jan 05 '23 15:01 option-greek

except for a very old issue

Can there be a link to issue with info mentioned in text?

Morb0 avatar Oct 12 '25 13:10 Morb0