7 use base qw/DBIx::Class::Componentised/;
16 DBIx::Class - Because the brain is a terrible thing to waste.
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, replacing
46 use base qw/Class::DBI/;
50 use base qw/DBIx::Class/;
51 __PACKAGE__->load_components(qw/CDBICompat Core DB/);
53 will probably get you started.
55 If you're using AUTO_INCREMENT for your primary columns, you'll also want
56 yo load the approriate PK::Auto subclass - e.g.
58 __PACKAGE__->load_components(qw/CDBICompat PK::Auto::SQLite Core DB/);
60 (with is what ::Test::SQLite does to present the Class::DBI::Test::SQLite
63 If you fancy playing around with DBIx::Class from scratch, then read the docs
64 for DBIx::Class::Table, ::Row, ::Schema, ::DB and ::Relationship,
66 use base qw/DBIx::Class/;
67 __PACKAGE__->load_components(qw/Core DB/);
69 and have a look at t/lib/DBICTest.pm for a brief example.
73 Matt S. Trout <mst@shadowcatsystems.co.uk>
77 Andy Grundman <andy@hybridized.org>
79 Brian Cassidy <bricas@cpan.org>
81 Dan Kubb <dan.kubb-cpan@onautopilot.com>
83 Dan Sully <daniel@cpan.org>
87 Marcus Ramberg <mramberg@cpan.org>
91 You may distribute this code under the same terms as Perl itself.