- Notifications
You must be signed in to change notification settings - Fork516
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 theClient::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 inour 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 upin a previous issue. Maybe we could implement this under a compile time feature flag?