package DBIx::Class;
use strict;
use warnings;
our $VERSION;
$VERSION = '0.082841';
$VERSION = eval $VERSION if $VERSION =~ /_/;
use DBIx::Class::_Util;
use mro 'c3';
use DBIx::Class::Optional::Dependencies;
use base qw/DBIx::Class::Componentised DBIx::Class::AccessorGroup/;
use DBIx::Class::StartupCheck;
use DBIx::Class::Exception;
__PACKAGE__->mk_group_accessors(inherited => '_skip_namespace_frames');
__PACKAGE__->_skip_namespace_frames('^DBIx::Class|^SQL::Abstract|^Try::Tiny|^Class::Accessor::Grouped|^Context::Preserve');
sub DESTROY { &DBIx::Class::_Util::detected_reinvoked_destructor }
sub mk_classdata {
shift->mk_classaccessor(@_);
}
sub mk_classaccessor {
my $self = shift;
$self->mk_group_accessors('inherited', $_[0]);
$self->set_inherited(@_) if @_ > 1;
}
sub component_base_class { 'DBIx::Class' }
sub MODIFY_CODE_ATTRIBUTES {
my ($class,$code,@attrs) = @_;
$class->mk_classdata('__attr_cache' => {})
unless $class->can('__attr_cache');
$class->__attr_cache->{$code} = [@attrs];
return ();
}
sub _attr_cache {
my $self = shift;
my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {};
return {
%$cache,
%{ $self->maybe::next::method || {} },
};
}
sub DBIx::Class::_ENV_::HELP_URL () {
'http://p3rl.org/DBIx::Class#GETTING_HELP/SUPPORT'
}
1;