Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Iterating through DBIx resultset

by stonecolddevin (Parson)
on Jul 07, 2014 at 16:54 UTC ( [id://1092609]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Iterating through DBIx resultset
in thread Iterating through DBIx::Class resultset

I think you need to call ->all:

my @results = My::App::Schema->schema->resultset('MyTable')->search( undef, { page => 1, rows => $max_records, } )->all;

irc.perl.org is the IRC server. So you'd connect to it like you would connect to freenode and /join the #dbix-class channel.

Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Replies are listed 'Best First'.
Re^6: Iterating through DBIx resultset
by PerlSufi (Friar) on Jul 07, 2014 at 18:09 UTC
    I think that worked without using  ->all but I did use 'all' for another part of my script..
    And thanks for the irc reference :)

      I haven't used DBIC in some time, but I think ->all might be inferred when you do ->search(...) in list context. Glad you got it working.

      Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-23 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found