Skip to content

Postgres: Returning Old & New Values #537

@sdil

Description

@sdil

Is your feature request related to a problem? Please describe.

Postgres 18 recently added a new feature: when you mutate a row, you can retrieve both the old and new values in the RETURNING clause. It would be great if I could use this new feature to do value comparisons in my application.

Describe the solution you'd like

Probably a new method like so:

.RETURNING(User.AllColumns.Old, RETURNING(User.AllColumns.New))

p/s: I have a very shallow knowledge about the inner workings of this library

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions