Fast/Profile/mysql.pm

filter: Statementstmt 70.5% 12 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 71.4% 15 / 21 CC 1 SCAR 1.4
CC
1
Cov
71%
_explain_sql
1.6
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Fast/Profile/Base.pm ↑ Summary Fast/Base.pm »
1 package DBIx::Fast::Profile::mysql;
2  
3 1 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Object::Pad 0.807;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.21';
7 1 ▶use DBIx::Fast::Profile::MariaDB;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # MySQL (Oracle) diagnostics. MySQL 8.x retains the entire surface the
10 # MariaDB profile is built on - SET profiling, information_schema.profiling,
11 # information_schema.processlist and SHOW GLOBAL STATUS - deprecated upstream
12 # in favour of performance_schema, but present and functional (verified
13 # against MySQL 8.4). Until that changes, the MariaDB implementation applies
14 # verbatim; this subclass exists so $db->profiler on a mysql:// connection
15 # resolves natively instead of warning and falling back to the Base stub.
16  
17 class DBIx::Fast::Profile::mysql :isa(DBIx::Fast::Profile::MariaDB) {
18  
19 # The one real divergence: MySQL 8.0 REMOVED "EXPLAIN EXTENDED" (plain
20 # EXPLAIN carries the extended columns since 5.7); MariaDB keeps it.
21 # MySQL has no SET STATEMENT ... FOR, and its EXPLAIN does not execute
22 # constant subqueries; the shared deny-list still applies.
23 0 ▶ method _explain_sql ($safe) { return "EXPLAIN $safe" }
Subroutine _explain_sql: not called CC=1 SCAR=4.6
24 }
25  
26 1 1;
27  
28 __END__
« Fast/Profile/Base.pm ↑ Summary Fast/Base.pm »