-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Problem getting query metadata from a PostgresClient query #525
Comments
What do you mean by "fails"? |
Edit the original. The error is "Value of type '[PostgresRow]' has no member 'metadata'" |
Ok so that's a compiler error. What you need is #504. cc @fabianfett I'd assume you're not super happy with the API design in that PR? I'm not either, but I couldn't think of any better ways. I'm open to your guidance if you have better ideas around how to expose the query metadata. |
Yep, collectWithMetadata() would be what I need. Anything I can do to help this along? |
This is already available with Connection.query(). I need this to verify that INSERT/UPDATE statements have actually been successful and how many rows were affected. |
I am trying to find a way to access the query metadata from a PostgresClient query. The following code fails on the return statement which should return the number of rows deleted. I cannot seem to find a workaround. Is there a way to access the query metadata.
Postgres-nio 1.22.1
The text was updated successfully, but these errors were encountered: