SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE perl-Mojo-Pg-4.09-2.1.noarch.rpm

Mojo::Pg::Transaction

Section: User Contributed Perl Documentation (3)
Updated: 2018-05-08
Index 

NAME

Mojo::Pg::Transaction - Transaction 

SYNOPSIS

  use Mojo::Pg::Transaction;  my $tx = Mojo::Pg::Transaction->new(db => $db);  $tx->commit;
 

DESCRIPTION

Mojo::Pg::Transaction is a scope guard for DBD::Pg transactions used byMojo::Pg::Database. 

ATTRIBUTES

Mojo::Pg::Transaction implements the following attributes. 

db

  my $db = $tx->db;  $tx    = $tx->db(Mojo::Pg::Database->new);

Mojo::Pg::Database object this transaction belongs to. 

METHODS

Mojo::Pg::Transaction inherits all methods from Mojo::Base andimplements the following new ones. 

commit

  $tx->commit;

Commit transaction. 

new

  my $tx = Mojo::Pg::Transaction->new;  my $tx = Mojo::Pg::Transaction->new(db => Mojo::Pg::Database->new);  my $tx = Mojo::Pg::Transaction->new({db => Mojo::Pg::Database->new});

Construct a new Mojo::Pg::Transaction object. 

SEE ALSO

Mojo::Pg, Mojolicious::Guides, <https://mojolicious.org>.


 

Index

NAME
SYNOPSIS
DESCRIPTION
ATTRIBUTES
db
METHODS
commit
new
SEE ALSO

This document was created byman2html,using the manual pages.