Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support parameterized query in Postgres extended query protocol #205

Open
BugenZhao opened this issue Jan 5, 2024 · 0 comments
Open

support parameterized query in Postgres extended query protocol #205

BugenZhao opened this issue Jan 5, 2024 · 0 comments

Comments

@BugenZhao
Copy link
Collaborator

BugenZhao commented Jan 5, 2024

We have the basic support for Postgres extended query protocol. However, as there is no SLT syntax available for the individual steps of Parse and Bind, we always query with a full SQL and no parameters.

let stmt = self.client.prepare(sql).await?;
let rows = self
.client
.query_raw(&stmt, std::iter::empty::<&(dyn ToSql + Sync)>())
.await?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant