The following module was proposed for inclusion in the Module List: modid: DBIx::Record DSLIP: adpOp description: Middle-tier object wrapper for DBI userid: MIKO (Miko O'Sullivan) chapterid: 7 (Database_Interfaces) communities:
similar: DBIx::Table rationale: NAME DBIx::Record - Middle tier system for representing database records as objects. SYNOPSIS use Hospital; # class that implements DBIx::Record my ($login, $patient); # get object that holds the database connection $login = Hospital->get_login; # Instantiate object representing the patient record # that has primary key 1000. Change the record's # name_last field. Then save the record. $patient = Hospital::Patient->new($login, 1000, fields=>['name_last']); $patient->{'f'}->{'name_last'} = 'Smith'; $patient->save; # Instantiate object representing a patient record # that doesn't exist yet. Set the name_last field, save, # and output the primary key of the new record $patient = Hospital::Patient->new($login, -1); $patient->{'f'}->{'name_last'} = 'Smith'; $patient->save; print 'primary key: ', $patient->{'pk'}, "\n"; enteredby: MIKO (Miko O'Sullivan) enteredon: Wed Nov 13 20:51:20 2002 GMT The resulting entry would be: DBIx:: ::Record adpOp Middle-tier object wrapper for DBI MIKO Thanks for registering, The Pause Team PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=aa300000_434c6d56875b103b&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=aa300000_434c6d56875b103b&SUBMIT_pause99_add_mod_insertit=1