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

Documentation: PostgresClient query example for an UPDATE statement #508

Open
duncangroenewald opened this issue Sep 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@duncangroenewald
Copy link

I can't seem to get an UPDATE statement to work, well the query seems to work and doesn't throw an exception but the database is not being updated.

I can't find an example of executing and UPDATE statement and getting the number of rows that were updated back in the results.

A code snipped showing how this is supposed to be done will be helpful. Thanks

@duncangroenewald duncangroenewald added the enhancement New feature or request label Sep 18, 2024
@fabianfett
Copy link
Collaborator

@duncangroenewald Thanks for opening so many issues. I love that you make your feedback heard. And sorry for taking so long to come back to it.

I can't find an example of executing and UPDATE statement and getting the number of rows that were updated back in the results.

You can't find an example for this today, as we sadly currently do not support returning the affected rows for prepared statements. Is it okay for you if I change this ticket to request this feature?

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

No branches or pull requests

2 participants