diff --git a/src/DataCollector/QueryCollector.php b/src/DataCollector/QueryCollector.php index fbeaf81b..f11695c6 100644 --- a/src/DataCollector/QueryCollector.php +++ b/src/DataCollector/QueryCollector.php @@ -511,6 +511,41 @@ public function collect() 'type' => 'explain', ]; } + } elseif ($query['driver'] === 'sqlite') { + $vmi = ''; + $vmi .= " + + + + + + + + + "; + + foreach ($query['explain'] as $explain) { + $vmi .= " + + + + + + + + + "; + } + + $vmi .= '
AddressOpcodeP1P2P3P4P5Comment
{$explain->addr}{$explain->opcode}{$explain->p1}{$explain->p2}{$explain->p3}{$explain->p4}{$explain->p5}{$explain->comment}
'; + + $statements[] = [ + 'sql' => " - EXPLAIN:", + 'type' => 'explain', + 'params' => [ + 'Virtual Machine Instructions' => $vmi, + ] + ]; } else { foreach ($query['explain'] as $explain) { $statements[] = [