1 package DBIx::Class::CDBICompat;
5 use base qw/DBIx::Class::Core DBIx::Class::DB/;
6 use Carp::Clan qw/^DBIx::Class/;
9 require Class::Trigger;
10 require DBIx::ContextualFetch;
12 croak "Class::Trigger and DBIx::ContextualFetch is required for CDBICompat" if $@;
14 __PACKAGE__->load_own_components(qw/
37 #DBIx::Class::ObjIndexStubs
42 DBIx::Class::CDBICompat - Class::DBI Compatibility layer.
46 use base qw/DBIx::Class/;
47 __PACKAGE__->load_components(qw/CDBICompat Core DB/);
51 DBIx::Class features a fully featured compatibility layer with L<Class::DBI>
52 to ease transition for existing CDBI users. In fact, this class is just a
53 receipe containing all the features emulated. If you like, you can choose
54 which features to emulate by building your own class and loading it like
57 __PACKAGE__->load_own_components(qw/CDBICompat/);
59 this will automatically load the features included in My::DB::CDBICompat,
60 provided it looks something like this:
62 package My::DB::CDBICompat;
63 __PACKAGE__->load_components(qw/
64 CDBICompat::ColumnGroups
81 Allows you to turn on automatic updates for column values.
103 =item LiveObjectIndex
105 The live object index tries to ensure there is only one version of a object
106 in the perl interpreter.
128 Matt S. Trout <mst@shadowcatsystems.co.uk>
132 You may distribute this code under the same terms as Perl itself.