Mojo::SQLite::Transaction(3pm) | User Contributed Perl Documentation | Mojo::SQLite::Transaction(3pm) |
Mojo::SQLite::Transaction - Transaction
use Mojo::SQLite::Transaction; my $tx = Mojo::SQLite::Transaction->new(db => $db); $tx->commit;
Mojo::SQLite::Transaction is a scope guard for DBD::SQLite transactions used by Mojo::SQLite::Database.
Mojo::SQLite::Transaction implements the following attributes.
my $db = $tx->db; $tx = $tx->db(Mojo::SQLite::Database->new);
Mojo::SQLite::Database object this transaction belongs to. Note that this attribute is weakened.
Mojo::SQLite::Transaction inherits all methods from Mojo::Base and implements the following new ones.
my $tx = Mojo::SQLite::Transaction->new; my $tx = Mojo::SQLite::Transaction->new(db => Mojo::SQLite::Database->new); my $tx = Mojo::SQLite::Transaction->new({db => Mojo::SQLite::Database->new});
Construct a new Mojo::SQLite::Transaction object.
$tx->commit;
Commit transaction.
Report any issues on the public bugtracker.
Dan Book, "dbook@cpan.org"
Copyright 2015, Dan Book.
This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Mojo::SQLite
2022-07-11 | perl v5.34.0 |