Skip to content

Glossary: Building APIs with Node.js

inTransaction

A helper function that runs a piece of work between `BEGIN` and `COMMIT` in the database. If the work throws, it sends `ROLLBACK` to undo every change and then rethrows the error.

Where the book teaches it

Related terms

Transaction