DBIx::DBO2 - Objects mapping to SQL relational structures


DBIx-DBO2 documentation Contained in the DBIx-DBO2 distribution.

Index


Code Index:

NAME

Top

DBIx::DBO2 - Objects mapping to SQL relational structures

SYNOPSIS

Top

  package MyRecord;
  use DBIx::DBO2::Record '-isasubclass';

  my $sql_engine = DBIx::SQLEngine->new( $dsn, $user, $pass );
  MyRecord->table( $sql_engine->table('myrecords') );

  package main;
  my $results = MyRecord->fetch_all;
  foreach my $record ( $results->records ) {
    if ( $record->{age} > 20 ) {
      $record->{status} = 'adult';
      $record->save_row;
    }
  }

DESCRIPTION

Top

DBIx::DBO2 is an object-relational mapping framework that facilitates the development of Perl classes whose objects are stored in a SQL database table.

The following classes are included:

  Schema
  Record	RecordSet
  Fields

Each Schema object represents a collection of Record classes.

Each Record object represents a single row in a SQL table.

The Fields class generates accessor methods for Record classes.

The RecordSet class provides methods on blessed arrays of Records.

SEE ALSO

Top

See DBIx::DBO2::Record, DBIx::DBO2::Fields, DBIx::DBO2::Table, and DBIx::DBO2::TableSet for key interfaces.

See DBIx::DBO2::ReadMe for distribution and license information.

CREDITS AND COPYRIGHT

Top

Author

Developed by Matthew Simon Cavalletto at Evolution Softworks.

You may contact the author directly at evo@cpan.org or simonm@cavalletto.org. More free Perl software is available at www.evoscript.org.

Contributors

Many thanks to the kind people who have contributed code and other feedback:

  Eric Schneider, Evolution Online Systems
  E. J. Evans, Evolution Online Systems
  Matthew Sheahan, Evolution Online Systems
  Eduardo Iturrate, Evolution Online Systems

License

You may use, modify, and distribute this software under the same terms as Perl.


DBIx-DBO2 documentation Contained in the DBIx-DBO2 distribution.

package DBIx::DBO2;

require 5.005;
use strict;

use vars qw( $VERSION );
$VERSION = 0.008;

########################################################################

use DBIx::SQLEngine;

use DBIx::DBO2::RecordSet;
use DBIx::DBO2::Record;

use DBIx::DBO2::Schema;

use DBIx::DBO2::Fields;

########################################################################

1;

__END__

########################################################################