| 1 | package DBIx::Fast::Profile::mysql; | ||
| 2 | |||
| 3 | use v5.38; | ||
| 4 | use Object::Pad 0.807; | ||
| 5 | |||
| 6 | our $VERSION = '0.22'; | ||
| 7 | use DBIx::Fast::Profile::MariaDB; | ||
| 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 | method _explain_sql ($safe) { return "EXPLAIN $safe" } | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ |