The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Acrux::DBI::Tx - Transaction

SYNOPSIS

    use Acrux::DBI::Tx;

    my $tx = Acrux::DBI::Tx->new( dbi => $dbi );
    # . . .
    $tx->commit;

DESCRIPTION

This is a scope guard for Acrux::DBI transactions

ATTRIBUTES

This class implements the following attributes

dbi

    dbi => $dbi

The object this transaction belongs to. Note that this attribute is weakened

METHODS

This class implements the following methods

commit

    $tx->commit;

Commit transaction.

new

    my $tx = Acrux::DBI::Tx->new( dbi => $dbi );
    my $tx = Acrux::DBI::Tx->new( { dbi => $dbi } );

Construct a new transaction object

HISTORY

See Changes file

TO DO

See TODO file

SEE ALSO

Mojo::mysql, Mojo::Pg

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2024 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/