NAME
DBIx::Class::Schema::TxnEndHook - provide add_txn_end_hook method to your schema class
SYNOPSIS
package MyApp::Schema;
use parent 'DBIx::Schema';
__PACKAGE__->ensure_class_loaded('DBIx::Class::Storage::TxnEndHook');
__PACKAGE__->ensure_class_loaded('DBIx::Class::Storage::DBI');
__PACKAGE__->inject_base('DBIx::Class::Storage::DBI', 'DBIx::Class::Storage::TxnEndHook');
__PACKAGE__->load_components('Schema::TxnEndHook');
package main
my $schema = MyApp::Schema->connect(...)
$schema->txn_begin;
$schema->add_txn_end_hook(sub { ... });
$schema->txn_commit;
DESCRIPTION
DBIx::Class::Schema::TxnEndHook provide add_txn_end_hook
method to your schema class.