1Mojo::SQLite::TransactiUosne(r3pCmo)ntributed Perl DocumMeonjtoa:t:iSoQnLite::Transaction(3pm)
2
3
4
6 Mojo::SQLite::Transaction - Transaction
7
9 use Mojo::SQLite::Transaction;
10
11 my $tx = Mojo::SQLite::Transaction->new(db => $db);
12 $tx->commit;
13
15 Mojo::SQLite::Transaction is a scope guard for DBD::SQLite transactions
16 used by Mojo::SQLite::Database.
17
19 Mojo::SQLite::Transaction implements the following attributes.
20
21 db
22 my $db = $tx->db;
23 $tx = $tx->db(Mojo::SQLite::Database->new);
24
25 Mojo::SQLite::Database object this transaction belongs to. Note that
26 this attribute is weakened.
27
29 Mojo::SQLite::Transaction inherits all methods from Mojo::Base and
30 implements the following new ones.
31
32 new
33 my $tx = Mojo::SQLite::Transaction->new;
34 my $tx = Mojo::SQLite::Transaction->new(db => Mojo::SQLite::Database->new);
35 my $tx = Mojo::SQLite::Transaction->new({db => Mojo::SQLite::Database->new});
36
37 Construct a new Mojo::SQLite::Transaction object.
38
39 commit
40 $tx->commit;
41
42 Commit transaction.
43
45 Report any issues on the public bugtracker.
46
48 Dan Book, "dbook@cpan.org"
49
51 Copyright 2015, Dan Book.
52
53 This library is free software; you may redistribute it and/or modify it
54 under the terms of the Artistic License version 2.0.
55
57 Mojo::SQLite
58
59
60
61perl v5.36.0 2023-01-20 Mojo::SQLite::Transaction(3pm)