Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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
    $active_persons->search({
        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-12-20 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls