++ed by:
AZJADFTRE XIAOCANG STAUGAARD FUKAI

4 PAUSE users
7 non-PAUSE users.

Yuki Kimoto

NAME

DBIx::Custom::Model - Table class(experimental)

SYNOPSIS

use MyModel;

use base 'DBIx::Custom::Model';

sub new { my $self = shift->SUPER::new(@_);

    $self->table('books')->helper(
        insert_multi => sub {
            my $self = shift;
            
            my $dbi = $self->dbi;
            
            # ...
            
        }
    );
    
    return $self;
}

METHODS

DBIx::Custom inherits all methods from Object::Simple and implements the following new ones.

table

    my $table = $model->table('books');

Create a table object if not exists or get it.