Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Class::DBI::AbstractSearch and SpeedyCGI

by zigdon (Deacon)
on Oct 04, 2005 at 10:55 UTC ( [id://497195]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    MyApp::Sets:
      my @res = Peeron2::Sets->search_where({ID => "8880-1"});
    ...
    
    Class::DBI->sth_to_objects:
      $sth->execute("8880-1") unless $sth->{Active};
    
  2. or download this
    sub search_where {
        my $class = shift;
    ...
        $phrase =~ s/^\s*WHERE\s*//i;
        return $class->retrieve_from_sql($phrase, @bind); # <-------------
    +--31
    }
    
  3. or download this
    sub retrieve_from_sql {
            my ($class, $sql, @vals) = @_;
    ...
                    if $@;
            return $class->_ids_to_objects(\@rows);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found