DBIx::Record

DBIx::Record is a middle tier system for representing database records as objects.
Download

DBIx::Record Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Miko O'Sullivan
  • Publisher web site:
  • http://search.cpan.org/~miko/

DBIx::Record Tags


DBIx::Record Description

DBIx::Record is a middle tier system for representing database records as objects. DBIx::Record is a middle tier system for representing database records as objects.SYNOPSIS use Hospital; # load class that implements DBIx::Record class 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=>); $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"; Requirements: · Perl


DBIx::Record Related Software