Fast/Base.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Fast/Profile/mysql.pm ↑ Summary Fast/Profile/SQLite.pm »
1 package DBIx::Fast::Base;
2  
3 12 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use Object::Pad 0.807;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 our $VERSION = '0.21';
7 12 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 12 ▶use Scalar::Util 'weaken';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 class DBIx::Fast::Base {
11 206 ▶ field $dbix :param :reader;
Subroutine dbix: called CC=1 SCAR=0.0
Pod documented
12  
13 ADJUST {
14 croak "DBIx::Fast instance required"
15 unless ref($dbix) && ref($dbix) eq 'DBIx::Fast';
16  
17 # Weaken the back-reference: every subsystem is owned by the parent
18 # DBIx::Fast (which holds it strongly), so keeping a strong $dbix here
19 # would form an A->B->A cycle and leak the whole handle graph. Mirrors
20 # DBIx::Fast::Profile::Base.
21 weaken($dbix);
22 }
23 12 }
24  
25 12 1;
26  
27 __END__
« Fast/Profile/mysql.pm ↑ Summary Fast/Profile/SQLite.pm »