Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[Discipulus]: yes you know.. happy birthday.. happy birthday..
[jedikaiti]: ahhhh
[jedikaiti]: Never heard it referred to that way
[jedikaiti]: Happy Birthday to him!
[Discipulus]: ah! how do you say in english? .. i was sure..
[Discipulus]: ah turned

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-01-18 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (214 votes). Check out past polls.

    Notices?