Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Class::DBI vs. DBIx::Class

by hrr (Monk)
on Jun 25, 2006 at 14:46 UTC ( #557434=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # using DBIx::Class:  
    $schema->resultset('Person')->new({FirstName=>'Joe'})->insert();   
    
    # using Class::DBI:
    DB::Person->insert({FirstName=>'Joe'});
    
  2. or download this
    package DB::Person;
    use base 'DBIx::Class';
    ...
    package DB;
    use base 'DBIx::Class::Schema';
    __PACKAGE__->load_classes(qw[Person]);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://557434]
help
Chatterbox?
NodeReaper stumbles on his way to the attic

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-02-23 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (340 votes). Check out past polls.