| 1 | package DBIx::Class; | ||||||||||
| 2 | |||||||||||
| 3 | 308 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 308 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 308 | 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 | 308 | $VERSION = '0.08271'; | |||||||||
| 15 | |||||||||||
| 16 | 308 | ▶ | $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | |||||||||||
| 18 | 308 | ▶ | use DBIx::Class::_Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 308 | ▶ | use mro 'c3'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | 308 | ▶ | use DBIx::Class::Optional::Dependencies; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 308 | ▶ | use base qw/DBIx::Class::Componentised DBIx::Class::AccessorGroup/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | 308 | ▶ | use DBIx::Class::StartupCheck; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | 308 | ▶ | use DBIx::Class::Exception; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | |||||||||||
| 27 | 308 | __PACKAGE__->mk_group_accessors(inherited => '_skip_namespace_frames'); | |||||||||
| 28 | 308 | __PACKAGE__->_skip_namespace_frames('^DBIx::Class|^SQL::Abstract|^Try::Tiny|^Class::Accessor::Grouped|^Context::Preserve'); | |||||||||
| 29 | |||||||||||
| 30 | sub mk_classdata { | ||||||||||
| 31 | 5319 | ▶ | shift->mk_classaccessor(@_); | ||||||||
|
Subroutine
mk_classdata: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | sub mk_classaccessor { | ||||||||||
| 35 | 5319 | ▶ | my $self = shift; | ||||||||
|
Subroutine
mk_classaccessor: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 5319 | $self->mk_group_accessors('inherited', $_[0]); | |||||||||
| 37 | 5319 | ▶ | $self->set_inherited(@_) if @_ > 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 5621 | ▶ | sub component_base_class { 'DBIx::Class' } | ||||||||
|
Subroutine
component_base_class: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 41 | |||||||||||
| 42 | sub MODIFY_CODE_ATTRIBUTES { | ||||||||||
| 43 | 1 | ▶ | my ($class,$code,@attrs) = @_; | ||||||||
|
Subroutine
MODIFY_CODE_ATTRIBUTES: called CC=2 SCAR=7.0
| |||||||||||
| 44 | 1 | ▶ | $class->mk_classdata('__attr_cache' => {}) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | unless $class->can('__attr_cache'); | ||||||||||
| 46 | 1 | $class->__attr_cache->{$code} = [@attrs]; | |||||||||
| 47 | 1 | return (); | |||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | sub _attr_cache { | ||||||||||
| 51 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
_attr_cache: called CC=3 SCAR=11.4
| |||||||||||
| 52 | 1 | ▶ | my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 53 | |||||||||||
| 54 | return { | ||||||||||
| 55 | %$cache, | ||||||||||
| 56 | 1 | ▶ | %{ $self->maybe::next::method || {} }, | ||||||||
|
Branch: 1 branch
| |||||||||||
| 57 | }; | ||||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | 308 | 1; | |||||||||
| 61 | |||||||||||
| 62 | __END__ | ||||||||||