X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=7f72e29493f65ddd6297bd248837931c6700ae1a;hb=1f6715abcab925d1a45acfb51e7e9fffbad00c84;hp=d473c2d55f5045b5519001fd5ce807ee956c1160;hpb=34d52be2d55c86c6eddd2317157db7f2accbe810;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index d473c2d..7f72e29 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -3,17 +3,17 @@ package DBIx::Class; use strict; use warnings; -use base qw/DBIx::Class::CDBICompat DBIx::Class::Core/; - use vars qw($VERSION); +use base qw/DBIx::Class::Componentised/; + +$VERSION = '0.03001'; -$VERSION = '0.01'; 1; =head1 NAME -DBIx::Class - Because the brain is a terrible thing to waste. +DBIx::Class - Extensible and flexible object <-> relational mapper. =head1 SYNOPSIS @@ -24,9 +24,67 @@ and meant to support compability with it, while restructuring the insides, and making it possible to support some new features like self-joins, distinct, group bys and more. -=head1 AUTHORS +It's currently considered EXPERIMENTAL - bring this near a production +database at your own risk! The API is *not* fixed yet, although most of +the primitives should be good for the future and any API changes will be +posted to the mailing list before they're committed. + +The community can be found via - + + Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/ + + SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ + + Wiki: http://dbix-class.shadowcatsystems.co.uk/ + + IRC: irc.perl.org#dbix-class + +=head1 QUICKSTART + +If you're using Class::DBI, replacing + + use base qw/Class::DBI/; + +with + + use base qw/DBIx::Class/; + __PACKAGE__->load_components(qw/CDBICompat Core DB/); + +will probably get you started. + +If you're using AUTO_INCREMENT for your primary columns, you'll also want +yo load the approriate PK::Auto subclass - e.g. + + __PACKAGE__->load_components(qw/CDBICompat PK::Auto::SQLite Core DB/); + +(with is what ::Test::SQLite does to present the Class::DBI::Test::SQLite +interface) + +If you fancy playing around with DBIx::Class from scratch, then read the docs +for DBIx::Class::Table, ::Row, ::Schema, ::DB and ::Relationship, + + use base qw/DBIx::Class/; + __PACKAGE__->load_components(qw/Core DB/); + +and have a look at t/lib/DBICTest.pm for a brief example. + +=head1 AUTHOR + +Matt S. Trout + +=head1 CONTRIBUTORS + +Andy Grundman + +Brian Cassidy + +Dan Kubb + +Dan Sully + +davekam -Matt S. Trout +Marcus Ramberg =head1 LICENSE