Detailed Description
Definition at line 8 of file Yii2DbPanel.php.
Member Function Documentation
Yii2DbPanel::calculateResume |
( |
| ) |
|
|
protected |
Yii2DbPanel::calculateTimings |
( |
| ) |
|
|
protected |
Группировка времени выполнения sql-запросов
- Returns
- array
Definition at line 122 of file Yii2DbPanel.php.
Yii2DbPanel::compareResume |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
private |
static Yii2DbPanel::explain |
( |
|
$query, |
|
|
|
$connection |
|
) |
| |
|
static |
Run explain procedure
- Parameters
-
string | $query | |
CDbConnection | $connection | |
- Returns
- array
Definition at line 368 of file Yii2DbPanel.php.
Yii2DbPanel::formatSql |
( |
|
$message, |
|
|
|
$insertParams |
|
) |
| |
Выделение sql-запроса из лога и подстановка параметров
- Parameters
-
string | $message | |
bool | $insertParams | |
- Returns
- string
Definition at line 193 of file Yii2DbPanel.php.
Yii2DbPanel::getConnectionsInfo |
( |
| ) |
|
|
protected |
Yii2DbPanel::getDetail |
( |
| ) |
|
Yii2DbPanel::getExplainConnections |
( |
|
$query | ) |
|
Return connection list for query
- Parameters
-
- Returns
- array connection list
Definition at line 388 of file Yii2DbPanel.php.
static Yii2DbPanel::getExplainQuery |
( |
|
$query, |
|
|
|
$driver |
|
) |
| |
|
static |
Return explain procedure or null
- Parameters
-
string | $query | |
string | $driver | name |
- Returns
- string|null
Definition at line 349 of file Yii2DbPanel.php.
Yii2DbPanel::getQueriesInfo |
( |
| ) |
|
|
protected |
Yii2DbPanel::getResumeInfo |
( |
| ) |
|
|
protected |
Yii2DbPanel::getSummary |
( |
| ) |
|
Yii2DbPanel::highlightSql |
( |
|
$sql | ) |
|
Подсветка sql-кода
- Parameters
-
- Returns
- string
Definition at line 307 of file Yii2DbPanel.php.
Yii2DbPanel::insertParamsToSql |
( |
|
$query, |
|
|
|
$params |
|
) |
| |
|
private |
Умная подстановка параметров в SQL-запрос.
Поиск параметров производится за пределами строк в кавычках ["'`]. Значения подставляются для параметров типа (:xxx, ?).
- Parameters
-
string | $query | |
array | $params | |
- Returns
- string
Definition at line 250 of file Yii2DbPanel.php.
Yii2DbPanel::messageByNum |
( |
|
$number | ) |
|
Yii2DbPanel::parseParamsSql |
( |
|
$params | ) |
|
|
private |
Парсинг строки с параметрами типа (:xxx, ?)
- Parameters
-
- Returns
- array key/value
Definition at line 211 of file Yii2DbPanel.php.
Member Data Documentation
Yii2DbPanel::$canExplain = true |
Yii2DbPanel::$insertParamValues = true |
The documentation for this class was generated from the following file: