Acrux-DBI
view release on metacpan or search on metacpan
lib/Acrux/DBI/Tx.pm view on Meta::CPAN
package Acrux::DBI::Tx;
use strict;
use utf8;
=encoding utf8
=head1 NAME
Acrux::DBI::Tx - Transaction
=head1 SYNOPSIS
use Acrux::DBI::Tx;
my $tx = Acrux::DBI::Tx->new( dbi => $dbi );
# . . .
$tx->commit;
=head1 DESCRIPTION
This is a scope guard for L<Acrux::DBI> transactions
=head1 ATTRIBUTES
This class implements the following attributes
=head2 dbi
dbi => $dbi
The object this transaction belongs to. Note that this attribute is weakened
=head1 METHODS
This class implements the following methods
=head2 commit
$tx->commit;
Commit transaction.
=head2 new
my $tx = Acrux::DBI::Tx->new( dbi => $dbi );
my $tx = Acrux::DBI::Tx->new( { dbi => $dbi } );
Construct a new transaction object
=head1 HISTORY
See C<Changes> file
=head1 TO DO
See C<TODO> file
=head1 SEE ALSO
L<Mojo::mysql>, L<Mojo::Pg>
=head1 AUTHOR
Serż Minus (Sergey Lepenkov) L<https://www.serzik.com> E<lt>abalama@cpan.orgE<gt>
( run in 1.412 second using v1.01-cache-2.11-cpan-c966e8aa7e8 )