DebugMonitor
实现 QueryMonitorInterface查询监控处理查询日志记录。
最终
自 |
2.0.0 |
---|---|
包 |
Joomla 框架 |
方法
getBoundParams
获取已记录的绑定参数。
getBoundParams() : mixed||string|int
自 |
2.0.0 |
---|
响应
array<string|int, mixed>
getCallStacks
获取已记录的调用栈。
getCallStacks() : mixed||string|int
自 |
2.0.0 |
---|
响应
array<string|int, mixed>
getLogs
获取已记录的查询。
getLogs() : mixed||string|int
自 |
2.0.0 |
---|
响应
array<string|int, mixed>
getMemoryLogs
获取已记录的内存日志。
getMemoryLogs() : mixed||string|int
自 |
2.0.0 |
---|
响应
array<string|int, mixed>
getTimings
获取已记录的时间。
getTimings() : mixed||string|int
自 |
2.0.0 |
---|
响应
array<string|int, mixed>
startQuery
对查询启动进行操作。
startQuery( sql, object[]|null boundParams = null) :
自 |
2.0.0 |
---|
参数
- sql
string
要执行的 SQL。- boundParams
array<string|int, object>|null
绑定参数列表,与查询一起使用。每个项目都是一个对象,包含:值、数据类型
响应
void
stopQuery
对查询停止进行操作。
stopQuery() :
自 |
2.0.0 |
---|
响应
void