Hi, I would like to match on the type of a column in order to handle column values dynamically.
It seems that the possible types are defined in the Inner enum in type_gen.rs, but I cannot access it.
The other option would be to match on the Oid value accessible from the column type, but this does not seem like a great way to determine the column type at runtime.
Does the library offer any better way to do this? Thanks.
Hi, I would like to match on the type of a column in order to handle column values dynamically.
It seems that the possible types are defined in the
Inner
enum intype_gen.rs
, but I cannot access it.The other option would be to match on the Oid value accessible from the column type, but this does not seem like a great way to determine the column type at runtime.
Does the library offer any better way to do this? Thanks.