| 1 | package DBIx::Class; | ||||||||||||
| 2 | |||||||||||||
| 3 | 383 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 383 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 383 | our $VERSION; | |||||||||||
| 7 | # Always remember to do all digits for the version even if they're 0 | ||||||||||||
| 8 | # i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports | ||||||||||||
| 9 | # brain damage and presumably various other packaging systems too | ||||||||||||
| 10 | |||||||||||||
| 11 | # $VERSION declaration must stay up here, ahead of any other package | ||||||||||||
| 12 | # declarations, as to not confuse various modules attempting to determine | ||||||||||||
| 13 | # this ones version, whether that be s.c.o. or Module::Metadata, etc | ||||||||||||
| 14 | 383 | $VERSION = '0.082844'; | |||||||||||
| 15 | |||||||||||||
| 16 | { | ||||||||||||
| 17 | 383 | package | |||||||||||
| 18 | DBIx::Class::_ENV_; | ||||||||||||
| 19 | |||||||||||||
| 20 | 383 | require constant; | |||||||||||
| 21 | 383 | ▶ | constant->import( DEVREL => ( ($DBIx::Class::VERSION =~ /_/) ? 1 : 0 ) ); | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 383 | ▶ | $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 25 | |||||||||||||
| 26 | 383 | ▶ | use DBIx::Class::_Util; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 27 | 383 | ▶ | use mro 'c3'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 28 | |||||||||||||
| 29 | 383 | ▶ | use DBIx::Class::Optional::Dependencies; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 30 | |||||||||||||
| 31 | 383 | ▶ | use base qw/DBIx::Class::Componentised DBIx::Class::AccessorGroup/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 32 | 383 | ▶ | use DBIx::Class::StartupCheck; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 33 | 383 | ▶ | use DBIx::Class::Exception; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 34 | |||||||||||||
| 35 | 383 | __PACKAGE__->mk_group_accessors(inherited => '_skip_namespace_frames'); | |||||||||||
| 36 | 383 | __PACKAGE__->_skip_namespace_frames('^DBIx::Class|^SQL::Abstract|^Try::Tiny|^Class::Accessor::Grouped|^Context::Preserve'); | |||||||||||
| 37 | |||||||||||||
| 38 | # FIXME - this is not really necessary, and is in | ||||||||||||
| 39 | # fact going to slow things down a bit | ||||||||||||
| 40 | # However it is the right thing to do in order to get | ||||||||||||
| 41 | # various install bases to highlight their brokenness | ||||||||||||
| 42 | # Remove at some unknown point in the future | ||||||||||||
| 43 | 45957 | ▶ | sub DESTROY { &DBIx::Class::_Util::detected_reinvoked_destructor } | ||||||||||
|
Subroutine
DESTROY: called CC=1 SCAR=0.0
| |||||||||||||
| 44 | |||||||||||||
| 45 | 5847 | ▶ | sub mk_classdata { | ||||||||||
|
Subroutine
mk_classdata: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 46 | 5847 | shift->mk_classaccessor(@_); | |||||||||||
| 47 | } | ||||||||||||
| 48 | |||||||||||||
| 49 | 5847 | ▶ | sub mk_classaccessor { | ||||||||||
|
Subroutine
mk_classaccessor: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 50 | 5847 | my $self = shift; | |||||||||||
| 51 | 5847 | $self->mk_group_accessors('inherited', $_[0]); | |||||||||||
| 52 | 5847 | ▶ | $self->set_inherited(@_) if @_ > 1; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 53 | } | ||||||||||||
| 54 | |||||||||||||
| 55 | 6555 | ▶ | sub component_base_class { 'DBIx::Class' } | ||||||||||
|
Subroutine
component_base_class: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 56 | |||||||||||||
| 57 | 1 | ▶ | sub MODIFY_CODE_ATTRIBUTES { | ||||||||||
|
Subroutine
MODIFY_CODE_ATTRIBUTES: called CC=2 SCAR=7.0
| |||||||||||||
| 58 | 1 | my ($class,$code,@attrs) = @_; | |||||||||||
| 59 | 1 | ▶ | $class->mk_classdata('__attr_cache' => {}) | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 60 | unless $class->can('__attr_cache'); | ||||||||||||
| 61 | 1 | $class->__attr_cache->{$code} = [@attrs]; | |||||||||||
| 62 | 1 | return (); | |||||||||||
| 63 | } | ||||||||||||
| 64 | |||||||||||||
| 65 | 1 | ▶ | sub _attr_cache { | ||||||||||
|
Subroutine
_attr_cache: called CC=3 SCAR=11.4
| |||||||||||||
| 66 | 1 | my $self = shift; | |||||||||||
| 67 | 1 | ▶ | my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 68 | |||||||||||||
| 69 | return { | ||||||||||||
| 70 | %$cache, | ||||||||||||
| 71 | 1 | ▶ | %{ $self->maybe::next::method || {} }, | ||||||||||
|
Condition50%1/2
$self->maybe::next::method || {}
MC/DC0%0/1
$self->maybe::next::method || {}
$self->maybe::next::method
Truth table50%1/2
A
A= $self->maybe::next::method
| |||||||||||||
| 72 | }; | ||||||||||||
| 73 | } | ||||||||||||
| 74 | |||||||||||||
| 75 | # *DO NOT* change this URL nor the identically named =head1 below | ||||||||||||
| 76 | # it is linked throughout the ecosystem | ||||||||||||
| 77 | sub DBIx::Class::_ENV_::HELP_URL () { | ||||||||||||
| 78 | 'http://p3rl.org/DBIx::Class#GETTING_HELP/SUPPORT' | ||||||||||||
| 79 | } | ||||||||||||
| 80 | |||||||||||||
| 81 | 383 | 1; | |||||||||||
| 82 | |||||||||||||
| 83 | __END__ | ||||||||||||