Uuid with MySQL(MariaDB), using existing sql_type=Binary #3800
AlexStorm1313
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here we create the uuid:Uuid(crate) to UUID(custom sql type) conversion using the existing Binary sql type.
After we finish the conversion implementation we can use the regular uuid:Uuid field in out struct Example:
Feel free to ask questions or suggest improvement.
Hope this helps some people ✌️
Beta Was this translation helpful? Give feedback.
All reactions