Description
I have a use case where I'd like to reconstruct a Simple Query message and pass it back to my user. To do this I'd want to make a few changes to the Client::simple_query()
implementation.
-
Store and return the entire
Field
that is built from a backendMessage::RowDescription
inSimpleQueryRow
instead of just returning the column name inSimpleColumn
. I've done this with minor changes to the current interface in our rust-postgres fork. -
Ideally, expose
SimpleQueryRow::body
to avoid having to read each value usingSimpleQueryRow::get()
and re-serialize the message to bytes myself. -
Ideally, create public constructors for
SimpleQueryRow
,Field
, andDataRowBody
to allow easier unit testing in my own code. I noticed that a similar question came up in a previous issue. Maybe we could implement this under a compile time feature flag?