Definition at line 10 of file Profiler.php.
◆ queryEnd()
Ends a query. Pass it the handle that was returned by queryStart().
- Parameters
-
- Returns
- string|void
Definition at line 76 of file Profiler.php.
78 $this->_lastQueryId =
null;
79 return parent::queryEnd($queryId);
◆ queryEndLast()
Ends the last query if exists. Used for finalize broken queries.
- Returns
- string|void
Definition at line 87 of file Profiler.php.
89 if ($this->_lastQueryId !==
null) {
90 return $this->
queryEnd($this->_lastQueryId);
◆ queryStart()
queryStart |
( |
|
$queryText, |
|
|
|
$queryType = null |
|
) |
| |
Starts a query. Creates a new query profile object (\Zend_Db_Profiler_Query)
- Parameters
-
string | $queryText | SQL statement |
integer | null | $queryType | OPTIONAL Type of query, one of the \Zend_Db_Profiler::* constants |
- Returns
- integer|null
Definition at line 64 of file Profiler.php.
66 $this->_lastQueryId = parent::queryStart($queryText, $queryType);
67 return $this->_lastQueryId;
◆ setHost()
Setter for host IP
- Parameters
-
- Returns
- \Magento\Framework\DB\Profiler
Definition at line 39 of file Profiler.php.
◆ setType()
Setter for database connection type
- Parameters
-
- Returns
- \Magento\Framework\DB\Profiler
Definition at line 51 of file Profiler.php.
◆ $_host
◆ $_type
The documentation for this class was generated from the following file: