Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
Sale.js
SaleDetail.js
connection.js
migrations.sql
multiple-insert-fail.js
multiple-insert-with-transaction.js
multiple-insert.js

README.md

Multiple Inserts and Transactions in Objection Js

Blog Post: https://blog.eperedo.com/2020/01/11/objection-js-transactions/

Install dependencies

npm install

Run example multiple inserts

node ./src/multiple-insert-transactions/multiple-insert.js

Run example multiple inserts fail

node ./src/multiple-insert-transactions/multiple-insert-fail.js

Run example multiple inserts fail with transaction

node ./src/multiple-insert-transactions/multiple-insert-with-transaction.js
You can’t perform that action at this time.