Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Expose SimpleQueryRow internals to user #950

Open
@dwlbnks

Description

@dwlbnks

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.

  1. Store and return the entireField 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.

  2. Ideally, exposeSimpleQueryRow::body to avoid having to read each value usingSimpleQueryRow::get() and re-serialize the message to bytes myself.

  3. Ideally, create public constructors forSimpleQueryRow,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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp