1Mojo::SQLite::TransactiUosne(r3)Contributed Perl DocumenMtoajtoi:o:nSQLite::Transaction(3)
2
3
4

NAME

6       Mojo::SQLite::Transaction - Transaction
7

SYNOPSIS

9         use Mojo::SQLite::Transaction;
10
11         my $tx = Mojo::SQLite::Transaction->new(db => $db);
12         $tx->commit;
13

DESCRIPTION

15       Mojo::SQLite::Transaction is a scope guard for DBD::SQLite transactions
16       used by Mojo::SQLite::Database.
17

ATTRIBUTES

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.
26

METHODS

28       Mojo::SQLite::Transaction inherits all methods from Mojo::Base and
29       implements the following new ones.
30
31   new
32         my $tx = Mojo::SQLite::Transaction->new;
33         my $tx = Mojo::SQLite::Transaction->new(db => Mojo::SQLite::Database->new);
34         my $tx = Mojo::SQLite::Transaction->new({db => Mojo::SQLite::Database->new});
35
36       Construct a new Mojo::SQLite::Transaction object.
37
38   commit
39         $tx->commit;
40
41       Commit transaction.
42

BUGS

44       Report any issues on the public bugtracker.
45

AUTHOR

47       Dan Book, "dbook@cpan.org"
48
50       Copyright 2015, Dan Book.
51
52       This library is free software; you may redistribute it and/or modify it
53       under the terms of the Artistic License version 2.0.
54

SEE ALSO

56       Mojo::SQLite
57
58
59
60perl v5.30.0                      2019-07-26      Mojo::SQLite::Transaction(3)
Impressum