How to cast AnyRow / AnyValue to specific database value? #2464
Unanswered
garrrikkotua
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using AnyPool to support different types of databases in my app. But sometimes I need get back to specific db type to e.g perform serialization of query result. How can I do it with AnyRow or AnyValue? Is it possible?
Something like this:
match AnyValue.kind { AnyKind::Postgres => .... }
But as far as I see, kind field in AnyValue is private, so I can't use it.
Beta Was this translation helpful? Give feedback.
All reactions