Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-09-19 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls