PostgREST Transactions

Viewed 147

I am using PostgREST to expose DB entities to a Springboot app which consumes those.

I have two entities inside my DB which are Person and City.

I would like to save the Person entity and the City at the same time, if any of those two fails I would like the other one to not persist on the PostgREST.

I would like to achieve Transactional behaviour but on PostgREST. Is there any chance to achieve this natively from the tool or without programmatically delete the just created record on exception?

1 Answers
Related