Lock
Sequelize
Example: // t1 is a transaction Model.findAll({ where: ..., transaction: t1, lock: t1.LOCK... }); UserModel.findAll({ where: ..., include: [TaskModel, ...], transaction: t1, lock: { level: t1.LOCK..., of: UserModel } }); # UserModel will be locked but TaskModel won't!
https://sequelize.org/master/class/lib/transaction.js~Transaction.html#static-get-LOCK

doc
Transactions - Sequelize | The Node.js / io.js ORM for PostgreSQL, MySQL, SQLite and MSSQL
Sequelize supports two ways of using transactions: One which will automatically commit or rollback the transaction based on the result of a promise chain and, (if enabled) pass the transaction to all calls within the callback And one which leaves committing, rolling back and passing the transaction to the user.
https://sequelize.org/v3/docs/transactions/
example
Transactions
Sequelize는 트랜잭션을 사용하는 두 가지 방법을 지원합니다. 관리되지 않는 트랜잭션 : 트랜잭션 커밋 및 롤백은 사용자가 수동으로 수행해야합니다 (적절한 Sequelize 메서드 호출). 관리되는 트랜잭션 : 오류가 발생하면 Sequelize가 자동으로 트랜잭션을 롤백하거나 그렇지 않으면 트랜잭션을 커밋합니다. 또한 CLS (Continuation Local Storage)가 활성화 된 경우 트랜잭션 콜백 내의 모든 쿼리는 자동으로 트랜잭션 개체를 수신합니다.
https://runebook.dev/ko/docs/sequelize/manual/transactions

Seonglae Cho