[Dbix-class] Ok, let's begin
Bill Moseley
moseley at hank.org
Tue Sep 20 22:08:37 CEST 2005
On Tue, Sep 20, 2005 at 11:08:32PM +0200, Krzysztof Krzyzaniak wrote:
> >$rs->next will return an object
> >$rs->all will return all objects in the resultset
> >$rs->reset does what you expect
> >$rs->count will count rows (via COUNT(*) without fetching data)
> >$rs->delete deletes all records in the resultset
>
>
> [% WHILE (record = records.next) %]
>
> ... do the Bartman
>
> [% END %]
Is there much advantage of doing the above vs. this when the record
set isn't too large (e.g. when displaying a page of items)?
$c->stash->{records} = [ $rs->all ];
Then
[% FOREACH record = records %]
--
Bill Moseley
moseley at hank.org
More information about the Dbix-class
mailing list