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.
Glossary: Building APIs with Node.js
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.