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 It's currently considered EXPERIMENTAL - bring this near a production
12 database at your own risk! The API is *not* fixed yet, although most of
13 the primitives should be good for the future and any API changes will be
14 posted to the mailing list before they're committed.
16 The community can be found via -
18 Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/
20 SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
22 Wiki: http://dbix-class.shadowcatsystems.co.uk/
24 IRC: irc.perl.org#dbix-class
27 If you're using Class::DBI, and want an easy and fast way of migrating
28 to DBIx::Class look at DBIx::Class::CDBICompat.
30 There are two ways of using DBIx::Class, the 'simple' and the 'schema'
33 The 'simple' way of using DBIx::Class needs less classes than the
34 'schema' way but doesn't give you the ability to use different database
37 Some examples where different database connections are useful are:
39 different users with different rights different databases with the same
43 First you need to create a base class all other classes inherit from.
45 Look at DBIx::Class::DB how to do this
47 Next you need to create a class for every table you want to use with
50 Look at DBIx::Class::Table how to do this.
53 With this approach the table classes inherit directly from
54 DBIx::Class::Core, although it might be a good idea to create a 'parent'
55 class for all table classes which inherits from DBIx::Class::Core and
56 adds additional methods needed by all table classes, e.g. reading a
57 config file, loading auto primary key support.
59 Look at DBIx::Class::Schema how to do this.
61 If you need more hand-holding, check out the introduction in the manual
65 DBIx::Class::Core - DBIC Core Classes
66 DBIx::Class::CDBICompat - Class::DBI Compat layer.
67 DBIx::Class::Manual - User's manual.
70 Matt S. Trout <mst@shadowcatsystems.co.uk>
73 Andy Grundman <andy@hybridized.org>
75 Brian Cassidy <bricas@cpan.org>
77 Dan Kubb <dan.kubb-cpan@onautopilot.com>
79 Dan Sully <daniel@cpan.org>
83 Marcus Ramberg <mramberg@cpan.org>
86 You may distribute this code under the same terms as Perl itself.