[Catalyst] Two ways to create record
Alex Povolotsky
tarkhil at over.ru
Tue Jan 15 13:38:36 GMT 2008
Matt S Trout wrote:
>
> Neither of these are standard DBIx::Class methods; the standard approach
> is to do
>
> my $obj = $rs->new(\%data);
>
> <maybe use $obj->column_name($value) to set more data>
>
> $obj->insert;
>
... I see. It does not depend on model implementation.
Ok than, assume I'm using DBI connection without AutoCommit (AutoCommit
is often a very bad practice). Where should I put commit/rollback calls?
Alex.
More information about the Catalyst
mailing list