[Dbix-class] Per the design of a method
dan.horne at redbone.co.nz
Thu Jun 16 16:24:01 GMT 2011
I'm not sure that I understand your query. The resultset has a Data::Page object which has the total number of rows, and should also handle the pagination for you:
On 17/06/2011, at 4:03 AM, dorian taylor <dorian.taylor.lists at gmail.com> wrote:
> I'm trying to design a method which, while it paginates the contents
> of a query, also knows the full number of records available.
> To keep superfluous parameters down I'd like to just pass in a
> ResultSet, but by then the pagination information is baked into the
> object's attributes and I'm not sure if there's a way to either modify
> it or get it out so that I can run a full count.
> What would you do?
> Dorian Taylor
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://email@example.com
More information about the DBIx-Class