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

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