module Sequel::Database::RunTransactionHooks

Public Instance Methods

run_after_commit_hooks(opts=OPTS) click to toggle source

Run all savepoint and transaction after_commit hooks for the current transaction, and remove the hooks after running them. Options:

:server

The server/shard to use.

   # File lib/sequel/extensions/run_transaction_hooks.rb
34 def run_after_commit_hooks(opts=OPTS)
35   _run_transaction_hooks(:after_commit, opts)
36 end
run_after_rollback_hooks(opts=OPTS) click to toggle source

Run all savepoint and transaction after_rollback hooks for the current transaction, and remove the hooks after running them. Options:

:server

The server/shard to use.

   # File lib/sequel/extensions/run_transaction_hooks.rb
42 def run_after_rollback_hooks(opts=OPTS)
43   _run_transaction_hooks(:after_rollback, opts)
44 end