++ed by:

1 non-PAUSE user(s).

Nour Sharabash

NAME

Nour::Database - Mostly just a wrapper for DBIX::Simple.

VERSION

version 0.10

DESCRIPTION

Mostly just a wrapper for DBIX::Simple.

METHODS

db

    # This method most useful when handle is imported via Moose, e.g.
    has _database => (
        is => 'rw'
        , isa => 'Nour::Database'
        , handles => [ qw/db/ ]
        , lazy => 1
        , required => 1
        , default => sub { new Nour::Database }
    );

tx

    # This code commits:
    $self->tx( sub {
        my $tx = shift;
        # do some inserts/updates
        return 1;
    } );

    # This code doesn't:
    $self->tx( sub {
        my $tx = shift;
        # do some inserts/updates
        return 0; # or die, return pre-maturely, etc.
    } );

insert_id

Review this. Extra cruft might be useful or not.

NAME

Nour::Database

AUTHOR

Nour Sharabash <amirite@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Nour Sharabash.

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