The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::Shakan::Model::DBIxSkinny - DBIx::Skinny binding for HTML::Shakan

SYNOPSIS

    # create form object
    my $form = HTML::Shakan->new(
        request => CGI->new(),
        fields => [
            TextField(
                name => 'foo',
            ),
        ],
        model => HTML::Shakan::Model::DBIxSkinny->new()
    );

    # fillin_form
    $form->model->fill($row);

    # insert
    $form->model->create($skinny => $table);

    # update
    $form->model->update($row);

DESCRIPTION

This is DBIx::Skinny binding for HTML::Shakan.You can easy to insert/fill/update by HTML::Shakan.

METHODS

$form->model->fill($row);

fill the $row data to form.$row is instance of row class of DBIx::Skinny.

my $row = $form->model->create($skinny, $table);

insert form data to $table.

my $row = $form->model->insert($skinny, $table);

insert method is synonym of create method.

$form->model->update($row);

update $row by form data.

SEE ALSO

DBIx::Skinny, HTML::Shakan