7 use base qw/DBIx::Class::Componentised Class::Data::Inheritable/;
15 DBIx::Class - Extensible and flexible object <-> relational mapper.
21 This is an SQL to OO mapper, inspired by the L<Class::DBI> framework,
22 and meant to support compability with it, while restructuring the
23 internals and making it possible to support some new features like
24 self-joins, distinct, group bys and more.
26 This project is still at an early stage, so the maintainers don't make
27 any absolute promise that full backwards-compatibility will be supported;
28 however, if we can without compromising the improvements we're trying to
29 make, we will, and any non-compatible changes will merit a full justification
30 on the mailing list and a CPAN developer release for people to test against.
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 L<Class::DBI>, and want an easy and fast way of migrating to
45 DBIx::Class, take a look at L<DBIx::Class::CDBICompat>.
47 There are two ways of using DBIx::Class, the "simple" way and the "schema" way.
48 The "simple" way of using DBIx::Class needs less classes than the "schema"
49 way but doesn't give you the ability to easily use different database connections.
51 Some examples where different database connections are useful are:
53 different users with different rights
54 different databases with the same schema.
58 First you need to create a base class which all other classes will inherit from.
59 See L<DBIx::Class::DB> for information on how to do this.
61 Then you need to create a class for every table you want to use with DBIx::Class.
62 See L<DBIx::Class::Table> for information on how to do this.
66 With this approach, the table classes inherit directly from DBIx::Class::Core,
67 although it might be a good idea to create a "parent" class for all table
68 classes that inherits from DBIx::Class::Core and adds additional methods
69 needed by all table classes, e.g. reading a config file or loading auto primary
72 Look at L<DBIx::Class::Schema> for information on how to do this.
74 If you need more help, check out the introduction in the
79 =head2 L<DBIx::Class::Core> - DBIC Core Classes
81 =head2 L<DBIx::Class::Manual> - User's manual
83 =head2 L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
85 =head2 L<DBIx::Class::DB> - database-level methods
87 =head2 L<DBIx::Class::Table> - table-level methods
89 =head2 L<DBIx::Class::Row> - row-level methods
91 =head2 L<DBIx::Class::PK> - primary key methods
93 =head2 L<DBIx::Class::ResultSet> - search result-set methods
95 =head2 L<DBIx::Class::Relationship> - relationships between tables
99 Matt S. Trout <mst@shadowcatsystems.co.uk>
103 Andy Grundman <andy@hybridized.org>
105 Brian Cassidy <bricas@cpan.org>
107 Dan Kubb <dan.kubb-cpan@onautopilot.com>
109 Dan Sully <daniel@cpan.org>
111 David Kamholz <dkamholz@cpan.org>
115 Marcus Ramberg <mramberg@cpan.org>
121 You may distribute this code under the same terms as Perl itself.