DbExplainRenderer
API reference › Debug Core › Panel › Db › DbExplainRenderer
Renders a database EXPLAIN plan with the shared debugger table contract.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders the explained SQL statement and its driver-specific result rows. | DbExplainRenderer |
renderError() static | Renders a failed EXPLAIN attempt without escaping the shared panel contract. | DbExplainRenderer |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(string $query, array<array-key, array<array-key, mixed>> $results): stringRenders the explained SQL statement and its driver-specific result rows.
Parameters
| Parameter | Type | Description |
|---|---|---|
$query | string | SQL statement passed to EXPLAIN. |
$results | array<array-key, | Driver result rows. |
Returns
string
renderError()
Section titled “renderError() ”public static function renderError(string $query, string $message): stringRenders a failed EXPLAIN attempt without escaping the shared panel contract.
Parameters
| Parameter | Type | Description |
|---|---|---|
$query | string | |
$message | string |
Returns
string