NAME

DBIx::DBO2 - Objects mapping to SQL relational structures

SYNOPSIS

package MyRecord;
use DBIx::DBO2::Record '-isasubclass';
my $sql_engine = DBIx::SQLEngine->new( $dsn, $user, $pass );

MyRecord->table(
  DBIx::DBO2::Table->new(name=>'myrecords', datasource=>$sql_engine)
);

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

DESCRIPTION

DBIx::DBO2 is an object-relational mapping framework (or perhaps a relational-object mapping framework, if I understand the distinction correctly) that facilitates the development of Perl classes whose objects are stored in a SQL database table.

The following classes are included:

Table		TableSet
Column	ColumnSet
Record	RecordSet
Fields

Each Table object represents a single SQL table.

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

The Fields class generates accessor methods for Record classes.

The nameSet classes are each simple classes for blessed arrays of class name.

SEE ALSO

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

Developed By

M. Simon Cavalletto, simonm@cavalletto.org
Evolution Softworks, www.evoscript.org

Contributors

Piglet / EJ Evans, piglet@piglet.org
Eric Schneider, roark@evolution.com
Chaos / Matthew Sheahan

Copyright 2002 Matthew Simon Cavalletto.

Portions copyright 1997, 1998, 1999, 2000, 2001 Evolution Online Systems, Inc.

License

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