DbExplainSupport
API reference › Debug Core › Panel › Db › DbExplainSupport
Resolves which database drivers can be explained and the statement prefix each one expects.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
isSupported() static | Returns whether the driver produces an EXPLAIN plan the panel can render. | DbExplainSupport |
prefix() static | Returns the statement prefix that asks the driver for its plan. | DbExplainSupport |
Method details
Section titled “Method details”isSupported()
Section titled “isSupported() ”public static function isSupported(string $driverName): boolReturns whether the driver produces an EXPLAIN plan the panel can render.
Parameters
| Parameter | Type | Description |
|---|---|---|
$driverName | string | Driver name reported by the connection. |
Returns
bool: true when the driver is supported; false otherwise.
prefix()
Section titled “prefix() ”public static function prefix(string $driverName): stringReturns the statement prefix that asks the driver for its plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
$driverName | string | Driver name reported by the connection. |
Returns
string: Prefix to prepend to the explained statement, separator included.