Added tests for insert_or_update, moved Auto test to own file
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class.pm
CommitLineData
ea2e61bf 1package DBIx::Class;
2
5d283305 3use strict;
4use warnings;
5
ea2e61bf 6use base qw/DBIx::Class::CDBICompat DBIx::Class::Core/;
7
5d283305 8use vars qw($VERSION);
9
10$VERSION = '0.01';
11
ea2e61bf 121;
34d52be2 13
14=head1 NAME
15
16DBIx::Class - Because the brain is a terrible thing to waste.
17
18=head1 SYNOPSIS
19
20=head1 DESCRIPTION
21
22This is a sql to oop mapper, inspired by the L<Class::DBI> framework,
23and meant to support compability with it, while restructuring the
24insides, and making it possible to support some new features like
25self-joins, distinct, group bys and more.
26
39fe0e65 27=head1 QUICKSTART
28
29If you're using Class::DBI, replacing
30
31use base qw/Class::DBI/;
32
33with
34
35use base qw/DBIx::Class::CDBICompat DBIx::Class::Core/;
36
37will probably get you started.
38
39If you're using AUTO_INCREMENT for your primary columns, you'll also want
40PK::Auto and an appropriate PK::Auto::DBName (e.g. ::SQLite).
41
42If you fancy playing around with DBIx::Class from scratch, then read the docs
43for ::Table and ::Relationship,
44
45use base qw/DBIx::Class/;
46
47and have a look at t/lib/DBICTest.pm for a brief example.
48
34d52be2 49=head1 AUTHORS
50
51Matt S. Trout <perl-stuff@trout.me.uk>
52
53=head1 LICENSE
54
55You may distribute this code under the same terms as Perl itself.
56
57=cut
58