7 use base qw/DBIx::Class::Componentised/;
16 DBIx::Class - Extensible and flexible object <-> relational mapper.
22 This is a sql to oop mapper, inspired by the L<Class::DBI> framework,
23 and meant to support compability with it, while restructuring the
24 insides, and making it possible to support some new features like
25 self-joins, distinct, group bys and more.
27 It's currently considered EXPERIMENTAL - bring this near a production
28 database at your own risk! The API is *not* fixed yet, although most of
29 the primitives should be good for the future and any API changes will be
30 posted to the mailing list before they're committed.
32 The community can be found via -
34 Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/
36 SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
38 Wiki: http://dbix-class.shadowcatsystems.co.uk/
40 IRC: irc.perl.org#dbix-class
44 If you're using Class::DBI, and want an easy and fast way of migrating to
45 DBIx::Class look at L<DBIx::Class::CDBICompat>.
47 There are two ways of using DBIx::Class, the 'simple' and the 'schema' one.
49 The 'simple' way of using DBIx::Class needs less classes than the 'schema'
50 way but doesn't give you the ability to use different database connections.
52 Some examples where different database connections are useful are:
54 different users with different rights
55 different databases with the same schema.
59 First you need to create a base class all other classes inherit from.
61 Look at L<DBIx::Class::DB> how to do this
63 Next you need to create a class for every table you want to use with
66 Look at L<DBIx::Class::Table> how to do this.
71 With this approach the table classes inherit directly from DBIx::Class::Core,
72 although it might be a good idea to create a 'parent' class for all table
73 classes which inherits from DBIx::Class::Core and adds additional methods
74 needed by all table classes, e.g. reading a config file, loading auto primary
77 Look at L<DBIx::Class::Schema> how to do this.
79 If you need more hand-holding, check out the introduction in the
86 =item L<DBIx::Class::Core> - DBIC Core Classes
88 =item L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer.
90 =item L<DBIx::Class::Manual> - User's manual.
96 Matt S. Trout <mst@shadowcatsystems.co.uk>
100 Andy Grundman <andy@hybridized.org>
102 Brian Cassidy <bricas@cpan.org>
104 Dan Kubb <dan.kubb-cpan@onautopilot.com>
106 Dan Sully <daniel@cpan.org>
110 Marcus Ramberg <mramberg@cpan.org>
114 You may distribute this code under the same terms as Perl itself.