John Drago > Class-DBI-Lite-0.006 > Class::DBI::Lite

Download:
Class-DBI-Lite-0.006.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.006   Source   Latest Release: Class-DBI-Lite-0.034

NAME ^

Class::DBI::Lite - Lightweight ORM for Perl

EXPERIMENTAL STATUS ^

**NOTE**: This module is still under development. It is likely to change in dramatic ways without any warning.

As is, this module should not (yet) be used in a production environment until after v1.000.

SYNOPSIS ^

  package My::Model;
  
  use base 'Class::DBI::Lite';
  
  __PACKAGE__->connection(
    $Config->settings->dsn,
    $Config->settings->username,
    $Config->settings->password,
  );

Then, elsewhere...

  # Change the connection:
  My::Model->connection( @dsn );
  
  my $users = My::User->retrieve_all;
  
  My::Model->connection( @other_dsn );
  my $other_users = My::User->retrieve_all;

DESCRIPTION ^

This module is intended to serve as a drop-in replacement for the venerable Class::DBI when many features of Class::DBI are simply not needed, or when Ima::DBI's quirks are not wanted.

SEE ALSO ^

Class::DBI

TODO ^

AUTHOR ^

John Drago <jdrago_999@yahoo.com>.

LICENSE AND COPYRIGHT ^

Copyright 2008 John Drago <jdrago_999@yahoo.com>. All rights reserved.

This software is Free software and may be used and distributed under the same terms as perl itself.