7 use base qw/DBIx::Class::Componentised Class::Data::Accessor/;
9 sub mk_classdata { shift->mk_classaccessor(@_); }
10 sub component_base_class { 'DBIx::Class' }
12 # Always remember to do all digits for the version even if they're 0
13 # i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
14 # brain damage and presumably various other packaging systems too
16 $VERSION = '0.04999_05';
22 DBIx::Class - Extensible and flexible object <-> relational mapper.
28 This is an SQL to OO mapper, inspired by the L<Class::DBI> framework,
29 and meant to support compability with it, while restructuring the
30 internals and making it possible to support some new features like
31 self-joins, distinct, group bys and more.
33 This project is still at an early stage, so the maintainers don't make
34 any absolute promise that full backwards-compatibility will be supported;
35 however, if we can without compromising the improvements we're trying to
36 make, we will, and any non-compatible changes will merit a full justification
37 on the mailing list and a CPAN developer release for people to test against.
39 The community can be found via -
41 Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/
43 SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
45 Wiki: http://dbix-class.shadowcatsystems.co.uk/
47 IRC: irc.perl.org#dbix-class
51 If you're using L<Class::DBI>, and want an easy and fast way of migrating to
52 DBIx::Class, take a look at L<DBIx::Class::CDBICompat>.
54 There are two ways of using DBIx::Class, the "simple" way and the "schema" way.
55 The "simple" way of using DBIx::Class needs less classes than the "schema"
56 way but doesn't give you the ability to easily use different database connections.
58 Some examples where different database connections are useful are:
60 different users with different rights
61 different databases with the same schema.
65 First you need to create a base class which all other classes will inherit from.
66 See L<DBIx::Class::DB> for information on how to do this.
68 Then you need to create a class for every table you want to use with DBIx::Class.
69 See L<DBIx::Class::Table> for information on how to do this.
73 With this approach, the table classes inherit directly from DBIx::Class::Core,
74 although it might be a good idea to create a "parent" class for all table
75 classes that inherits from DBIx::Class::Core and adds additional methods
76 needed by all table classes, e.g. reading a config file or loading auto primary
79 Look at L<DBIx::Class::Schema> for information on how to do this.
81 If you need more help, check out the introduction in the
86 =head2 L<DBIx::Class::Core> - DBIC Core Classes
88 =head2 L<DBIx::Class::Manual> - User's manual
90 =head2 L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
92 =head2 L<DBIx::Class::DB> - database-level methods
94 =head2 L<DBIx::Class::Table> - table-level methods
96 =head2 L<DBIx::Class::Row> - row-level methods
98 =head2 L<DBIx::Class::PK> - primary key methods
100 =head2 L<DBIx::Class::ResultSet> - search result-set methods
102 =head2 L<DBIx::Class::Relationship> - relationships between tables
106 Matt S. Trout <mst@shadowcatsystems.co.uk>
110 Andy Grundman <andy@hybridized.org>
112 Brian Cassidy <bricas@cpan.org>
114 Dan Kubb <dan.kubb-cpan@onautopilot.com>
116 Dan Sully <daniel@cpan.org>
118 David Kamholz <dkamholz@cpan.org>
122 Marcus Ramberg <mramberg@cpan.org>
136 Daniel Westermann-Clark <danieltwc@cpan.org>
138 Alexander Hartmaier <alex_hartmaier@hotmail.com>
142 Nigel Metheringham <nigelm@cpan.org>
150 You may distribute this code under the same terms as Perl itself.