In a ActiveRecord transaction block, how do I get to know the number of records that were created/updated/rollbacked? for specific model.
This information is needed to know the history of what happened during the transaction job and report to the user.
A transaction either succeeds entirely, or fails and the database is rolled back to the state before the transaction.
There is no notion of partial completion for a transaction.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.