Help for this page

Select Code to Download


  1. or download this
    __PACKAGE__->set_sql( list => "select uname,fname,sname from users" );
    
    ...
      $sth->execute();
      return $sth->fetchall_arrayref({});
    }
    
  2. or download this
    my @users = My::CDBI::User->list;
    
  3. or download this
    my $user = My::CDBI::User->retrieve(123);
    $user->fname('Fred');
    $user->sname('Flintstone');
    $user->update;