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

Support automatic conversion from Uuid (as optional feature) #4365

Open
Hooksie opened this issue Jul 19, 2024 · 1 comment
Open

Support automatic conversion from Uuid (as optional feature) #4365

Hooksie opened this issue Jul 19, 2024 · 1 comment

Comments

@Hooksie
Copy link
Contributor

Hooksie commented Jul 19, 2024

I am implementing types for database objects which use UUIDs as primary keys, from the uuid crate. I noticed there is no automatic conversion for these types to the Python UUID type. Therefor, a pyclass with a UUID field requires a wrapper type.

Given the current features for chrono and decimal, it seems natural to add a uuid feature that implements the type conversion (in this case, similar to the decimal implementation specifically).

If there's interest, I'll take a shot at this. Feels like there's enough prior art in rust_decimal

@davidhewitt
Copy link
Member

I think this seems like a reasonable additional optional feature. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants