Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Class::DBI vs. DBIx::Class

by rafl (Friar)
on Jun 25, 2006 at 11:16 UTC ( #557422=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my $persons = $schema->resultset('Person');
    my $active_persons = $person->search({ active => 1 });
  2. or download this
    while (my $person = $person->next) {
  3. or download this
    my @person_objs = $person->all;
  4. or download this
        writeup_comment.title => 'Foo',
        prefetch => 'writeup',
    # gets you all persons with have recieved a comment with the title 'Fo
    +o' for one of their writeups, for example
  5. or download this
    my $writeups = $active_persons->search_related('Writeup');

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-06-25 08:34 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (323 votes). Check out past polls.