perl-DBIx-ScopedTransaction-1.2.0-alt1.noarch.rpm


Advertisement

Description

perl-DBIx-ScopedTransaction - Scope database transactions on DBI handles in code, to detect and prevent issues with unterminated

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-DBIx-ScopedTransaction-1.2.0-alt1.noarch.rpm
Package name perl-DBIx-ScopedTransaction
Package version 1.2.0
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 31.49 KB
Installed size 31.49 KB
Small class designed to be instantiated in a localized scope. Its purpose
is to start and then clean up a transaction on a DBI object, while detecting
cases where the transaction isn't terminated properly.
The synopsis has an example of working code, let's see here an example in
which DBIx::ScopedTransaction helps us to detect a logic error in how the
programmer handled terminating the transaction.
_sub test
_{
__my $transaction = DBIx::ScopedTransaction->new( $dbh );
__try
__{
___# Do some work on $dbh that may succeed or fail.
__}
__catch
__{
___$transaction->rollback();
__};
_}
_test();
As soon as the test() function has been run, $transaction goes out of scope and
gets destroyed by Perl. DBIx::ScopedTransaction subclasses destroy and detects
that the underlying transaction has neither been committed nor rolled back,
and forces a rollback for safety as well as prints details on what code should
be reviewed on STDERR.

Alternatives

Package Version Architecture Repository
perl-DBIx-ScopedTransaction - - -

Requires

Name Value
/usr/share/perl5 -
perl(Data/Validate/Type.pm) -
perl(Try/Tiny.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(DBIx/ScopedTransaction.pm) = 1.002
perl-DBIx-ScopedTransaction = 1.2.0-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-DBIx-ScopedTransaction-1.2.0-alt1.noarch.rpm
Source Package perl-DBIx-ScopedTransaction-1.2.0-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-DBIx-ScopedTransaction rpm package:
    # sudo apt-get install perl-DBIx-ScopedTransaction

Files

Path
/usr/share/doc/perl-DBIx-ScopedTransaction-1.2.0/Changes
/usr/share/doc/perl-DBIx-ScopedTransaction-1.2.0/LICENSE
/usr/share/doc/perl-DBIx-ScopedTransaction-1.2.0/README.md
/usr/share/doc/perl-DBIx-ScopedTransaction-1.2.0/ignore.txt
/usr/share/doc/perl-DBIx-ScopedTransaction-1.2.0/examples/examples.txt
/usr/share/perl5/DBIx/ScopedTransaction.pm

See Also

Package Description
perl-DBIx-SecureCGI-3.0.1-alt1.noarch.rpm Secure conversion of CGI params hash to SQL
perl-DBIx-Sequence-1.5-alt1.noarch.rpm perl module DBIx-Sequence
perl-DBIx-ShowCaller-0.80-alt1.noarch.rpm perl module DBIx-ShowCaller
perl-DBIx-Simple-Batch-1.69-alt1.noarch.rpm An Alternative To ORM and SQL Stored Procedures
perl-DBIx-Simple-Class-1.009-alt1.noarch.rpm Advanced object construction for DBIx::Simple!
perl-DBIx-Simple-Class-scripts-1.009-alt1.noarch.rpm DBIx-Simple-Class scripts
perl-DBIx-Simple-Concrete-1.001-alt1.noarch.rpm monkey-patch DBIx::Simple to use SQL::Concrete
perl-DBIx-Simple-DataSection-0.02-alt1.noarch.rpm executes the sql in the __DATA__ section
perl-DBIx-Simple-Inject-0.04-alt1.noarch.rpm Injects DBIx::Simple methods into DBI
perl-DBIx-Simple-Interpol-1.005-alt1.noarch.rpm monkey-patch DBIx::Simple to use SQL::Interpol
perl-DBIx-Simple-OO-0.03-alt1.noarch.rpm Retrieve database rows as objects
perl-DBIx-Simple-UTF8Columns-0.03-alt1.noarch.rpm Force UTF-8 flag for DBIx::Simple data
perl-DBIx-SimpleGoBetween-1.003-alt1.noarch.rpm DBI Wrapper interface
perl-DBIx-SimpleMigration-1.0.2-alt1.noarch.rpm extremely simple DBI migrations
perl-DBIx-SimplePerl-1.95-alt1.noarch.rpm Perlish access to DBI
Advertisement
Advertisement