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