Skip to content
PHP Ecosystem
Explore

DbExplainSupport

API reference › Debug Core › Panel › Db › DbExplainSupport

final classPHPForge\Debug\Panel\Db\DbExplainSupport
Sourcesrc/Panel/Db/DbExplainSupport.php

Resolves which database drivers can be explained and the statement prefix each one expects.

MethodDescriptionDefined by
isSupported() staticReturns whether the driver produces an EXPLAIN plan the panel can render.DbExplainSupport
prefix() staticReturns the statement prefix that asks the driver for its plan.DbExplainSupport
public static function isSupported(string $driverName): bool

Returns whether the driver produces an EXPLAIN plan the panel can render.

Parameters

ParameterTypeDescription
$driverNamestringDriver name reported by the connection.

Returns

bool: true when the driver is supported; false otherwise.

public static function prefix(string $driverName): string

Returns the statement prefix that asks the driver for its plan.

Parameters

ParameterTypeDescription
$driverNamestringDriver name reported by the connection.

Returns

string: Prefix to prepend to the explained statement, separator included.