Replies: 1 comment
-
I don't think we have any such ability since returning isn't actually a real concept in some of our lowest common denominator drivers (cough mysql cough) which would make this into 2 queries. I'd be opened to improvements in ergonomics around this for postgres specific use cases. Perhaps like we do upsert, we could have a special returning function that does some sort of magic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wish to know how I can use postgres
returning
clause with SQL Boiler elegantly.For example, I have the following query which update a user and returning the user ID:
The following is working as expected, the user has been updated and I got back the user id.
but I'm looking for more elegant ways to do the same without using
queries.RawG
Beta Was this translation helpful? Give feedback.
All reactions