You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
In the github doc it is written that the update "[...] will also return the number of affected rows." but looking at the code, it does not seem the case.
Is there a simple way to retrieve it without using the psycopg2 cursor.execute() myself ?
The text was updated successfully, but these errors were encountered:
You're right, I think that is a documentation mistake. Sorry about that.
I don't think there is a simple way to do what you want without getting the cursor. I did introduce a way to get the underlying database cursor for a query though.
I can't guarantee something like this will work, but I think it might. You just suffix _cursor after your query name. Best of luck, thanks for using the project. Sorry about the issue.
-- name: subscribe_userupdate user set is_subscribed = true where name = :name
In the github doc it is written that the update "[...] will also return the number of affected rows." but looking at the code, it does not seem the case.
Is there a simple way to retrieve it without using the psycopg2 cursor.execute() myself ?
The text was updated successfully, but these errors were encountered: