2 DBIx::Class - Extensible and flexible object <-> relational mapper.
6 This is a sql to oop mapper, inspired by the Class::DBI framework, and
7 meant to support compability with it, while restructuring the insides,
8 and making it possible to support some new features like self-joins,
9 distinct, group bys and more.
11 This project is still at an early stage so the maintainers don't make
12 any absolute promise that full backwards-compatibility will be
13 supported; however if we can without compromising the improvements we're
14 trying to make, we will, and any non-compatible changes will merit a
15 full justification on the mailing list and a CPAN developer release for
16 people to test against.
18 The community can be found via -
20 Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/
22 SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
24 Wiki: http://dbix-class.shadowcatsystems.co.uk/
26 IRC: irc.perl.org#dbix-class
29 If you're using Class::DBI, and want an easy and fast way of migrating
30 to DBIx::Class look at DBIx::Class::CDBICompat.
32 There are two ways of using DBIx::Class, the 'simple' and the 'schema'
35 The 'simple' way of using DBIx::Class needs less classes than the
36 'schema' way but doesn't give you the ability to use different database
39 Some examples where different database connections are useful are:
41 different users with different rights different databases with the same
45 First you need to create a base class all other classes inherit from.
47 Look at DBIx::Class::DB how to do this
49 Next you need to create a class for every table you want to use with
52 Look at DBIx::Class::Table how to do this.
55 With this approach the table classes inherit directly from
56 DBIx::Class::Core, although it might be a good idea to create a 'parent'
57 class for all table classes which inherits from DBIx::Class::Core and
58 adds additional methods needed by all table classes, e.g. reading a
59 config file, loading auto primary key support.
61 Look at DBIx::Class::Schema how to do this.
63 If you need more hand-holding, check out the introduction in the manual
67 DBIx::Class::Core - DBIC Core Classes
68 DBIx::Class::CDBICompat - Class::DBI Compat layer.
69 DBIx::Class::Manual - User's manual.
72 Matt S. Trout <mst@shadowcatsystems.co.uk>
75 Andy Grundman <andy@hybridized.org>
77 Brian Cassidy <bricas@cpan.org>
79 Dan Kubb <dan.kubb-cpan@onautopilot.com>
81 Dan Sully <daniel@cpan.org>
85 Marcus Ramberg <mramberg@cpan.org>
88 You may distribute this code under the same terms as Perl itself.