++ed by:
XIAOCANG FUKAI STAUGAARD AZJADFTRE

4 PAUSE users
7 non-PAUSE users.

Yuki Kimoto

NAME

DBIx::Custom::Model - Modele base class(experimental)

SYNOPSIS

use DBIx::Custom::Table;

my $table = DBIx::Custom::Table->new(name => 'books');

METHODS

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

helper

    $table->helper(insert => sub {
        # ...
    });

new

    my $table = DBIx::Custom->new;
    

insert

    $table->insert(\%param);

Insert.

insert_simple

Same as insert().

update

    $table->update(\%param, \%where);

Update.

update_simple

Same as update().

update_all

    $table->update_all(\%param);

Update all.

update_all_simple

Same as update_all.

delete

    $table->delete(\%where);

delete_simple()

Same as delete_all().

delete_all

    $table->delete_all(\%where);

delete_all_simple()

Same as delete_all().

select

    $table->select(\%where);
    $table->select(\@column);
    $table->select($append);
    
    # And any combination
    $table->select(\%where, \@column, $append);

select_simple

Same as select().