X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=b1b7249dc128af051af3416a61a9ee5e50781fff;hb=2441e56f45b903491252be04eda67613d20f73e8;hp=d473c2d55f5045b5519001fd5ce807ee956c1160;hpb=34d52be2d55c86c6eddd2317157db7f2accbe810;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index d473c2d..b1b7249 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.03004'; -$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,90 @@ 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, and want an easy and fast way of migrating to +DBIx::Class look at L. + +There are two ways of using DBIx::Class, the 'simple' and the 'schema' one. + +The 'simple' way of using DBIx::Class needs less classes than the 'schema' +way but doesn't give you the ability to use different database connections. + +Some examples where different database connections are useful are: + +different users with different rights +different databases with the same schema. + +=head1 Simple + +First you need to create a base class all other classes inherit from. + +Look at L how to do this + +Next you need to create a class for every table you want to use with +DBIx::Class. + +Look at L how to do this. + + +=head2 Schema + +With this approach the table classes inherit directly from DBIx::Class::Core, +although it might be a good idea to create a 'parent' class for all table +classes which inherits from DBIx::Class::Core and adds additional methods +needed by all table classes, e.g. reading a config file, loading auto primary +key support. + +Look at L how to do this. + +If you need more hand-holding, check out the introduction in the +manual below. + +=head1 SEE ALSO + +=over 4 + +=item L - DBIC Core Classes + +=item L - L Compat layer. + +=item L - User's manual. + +=back + +=head1 AUTHOR + +Matt S. Trout + +=head1 CONTRIBUTORS + +Andy Grundman + +Brian Cassidy + +Dan Kubb + +Dan Sully + +davekam -Matt S. Trout +Marcus Ramberg =head1 LICENSE