Mojo::MySQL5::Transaction - Transaction
use Mojo::MySQL5::Transaction; my $tx = Mojo::MySQL5::Transaction->new(db => $db); $tx->commit;
Mojo::MySQL5::Transaction is a cope guard for transactions started by $db->begin.
Mojo::MySQL5::Transaction implements the following attributes.
my $db = $tx->db; $tx = $tx->db(Mojo::MySQL5::Database->new);
Mojo::MySQL5::Database object this transaction belongs to.
Mojo::MySQL5::Transaction inherits all methods from Mojo::Base and implements the following ones.
$tx = $tx->commit;
Commit transaction.
my $tx = Mojo::MySQL5::Transaction->new; my $tx = Mojo::MySQL5::Transaction->new(db => Mojo::MySQL5::Database->new);
Construct a new Mojo::MySQL5::Transaction object.
Mojo::MySQL5.
To install Mojo::MySQL5, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::MySQL5
CPAN shell
perl -MCPAN -e shell install Mojo::MySQL5
For more information on module installation, please visit the detailed CPAN module installation guide.