Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRust enum to sql integer how to ? #503
Comments
This comment has been minimized.
|
There is #429 open, which add support for adding custom type mapping. This could be used to map an enum to an integer. |
This comment has been minimized.
|
FYI tracking issue for Postgres' custom enum types is #343 |
This comment has been minimized.
quadrupleslap
commented
Feb 4, 2017
|
Pointing out the obvious, it's easy to cast it into an integer with |
This comment has been minimized.
|
I'd also like to request some documentation on this issue. I managed to implement |
This comment has been minimized.
|
Finally got |
This comment has been minimized.
|
You can also see how we're handling this in crates.io -- https://github.com/rust-lang/crates.io/blob/4082d4e49c0e24a4883f301cc299360d4b828aaf/src/dependency.rs#L162-L184 https://github.com/rust-lang/crates.io/blob/4082d4e49c0e24a4883f301cc299360d4b828aaf/src/dependency.rs#L54-L65 |
This comment has been minimized.
|
Closing for the same reasons as #343 (comment) |
sackery commentedNov 28, 2016
No description provided.