Is is possible to call two queries that run as if they are a single query. Ie. Both queries need to be successful or both fail. I note that the two queries are completely independent, just have a common trigger event.
I am trying to avoid the complexity of coding the posting of each individually, then checking, then rolling back etc….if there is a error on one of them.
I seem to recall that postgres has this functionality but can’t locate it again in the several thousand page manual.
FYI, I am running sequelize on node with postgres as the database.
Thanks
Just hoping to be pointed in the right direction….does functionality exist?