DatabaseQuery
class DatabaseQuery
A MySQL query that will be profiled on a development environment
Constants
MICROSECONDS_IN_SECOND |
|
Methods
Debug a database query
Mark a query as finished
Get the value the MySQL query
Get the first keyword of the query (e.g. SELECT)
Get the parameters of the query
Get the parameters of the query
Get the duration of the query in microseconds
Get the query results
Get the query string parts
Get the resolved query strings (where all ?
s are replaced with the
actual parameter values)
Details
at line line 75
__construct(string $query, array|null $params)
Debug a database query
at line line 96
void
finish(mixed $return)
Mark a query as finished
at line line 124
string
getQuery(bool $highlight = false)
Get the value the MySQL query
at line line 138
string
getQueryType()
Get the first keyword of the query (e.g. SELECT)
at line line 150
array|null
getParams()
Get the parameters of the query
Alias for DatabaseQuery::getParams()
at line line 160
array|null
getParameters()
Get the parameters of the query
at line line 170
float
getDuration()
Get the duration of the query in microseconds
at line line 180
mixed
getResults()
Get the query results
at line line 191
array
getQueryParts(bool $highlight = false)
Get the query string parts
at line line 203
string
getResolvedQuery(bool $highlight = false)
Get the resolved query strings (where all ?
s are replaced with the
actual parameter values)