flâneur — a map of the web's best reading

Mastering transactions with Knex.js and Objection.js

gregberge.com · 2,463 words · saved by 1 readers

Add Postgres transactions in a Node.js application with Knex.js and Objection.js avoiding the pitfalls.

Mastering transactions with Knex.js and Objection.js April 13, 2021 🥐 4 min read Photo by Holly Stratton on Unsplash This article is also available in: Français Add Postgres transactions in a Node.js application with Knex.js and Objection.js avoiding the pitfalls. Transactions symbolize a unit of work that allows a group of requests to be processed in isolation. They do two things: Consistency : if one of the transaction requests fails, the transaction is invalidated. Isolation : if a piece of data used in a transaction changes during it, the transaction is invalidated. In the age of serverle

Explore this link on the map →

related reading