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 UPDATE ... RETURNING #44

Open
jfischoff opened this issue Jul 31, 2017 · 2 comments
Open

Support UPDATE ... RETURNING #44

jfischoff opened this issue Jul 31, 2017 · 2 comments

Comments

@jfischoff
Copy link

At least with postgres, one can add a RETURNING clause to an UPDATE query. The type in esqueleto does not support returning data from update

@parsonsmatt
Copy link
Collaborator

I think the way we can do this is:

updateReturning
  :: (SqlExpr (Entity val) -> SqlQuery ret)
  -> SqlWriteT m ret

defined in Database.Esqueleto.PostgreSQL.

ulidtko added a commit to ulidtko/esqueleto that referenced this issue May 11, 2023
With bitemyapp#44 as a starting point, and more ideas in mind.
ulidtko added a commit to ulidtko/esqueleto that referenced this issue Jun 15, 2023
With bitemyapp#44 as a starting point, and more ideas in mind.
ulidtko added a commit to ulidtko/esqueleto that referenced this issue Sep 1, 2023
With bitemyapp#44 as a starting point, and more ideas in mind.
ulidtko added a commit to ulidtko/esqueleto that referenced this issue Sep 1, 2023
With bitemyapp#44 as a starting point, and more ideas in mind.
ulidtko added a commit to ulidtko/esqueleto that referenced this issue May 1, 2024
With bitemyapp#44 as a starting point, and more ideas in mind.
@ulidtko
Copy link

ulidtko commented May 1, 2024

If anyone has alternative ways to reach @parsonsmatt or other maintainers — please ping them.

This has been implemented 6 releases ago — PR #362 — but it didn't receive any review so far.

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

No branches or pull requests

3 participants