maximebf/traceable-pdo
最新稳定版本:1.0
Composer 安装命令:
composer require maximebf/traceable-pdo
包简介
Log SQL statements executed using a PDO instance
关键字:
README 文档
README
Wrapper around PDO to provide information about executed statements.
$pdo = new TraceablePDO(new PDO($dsn));
$result = $pdo->query('select * from mytable');
$tracedStmt = $pdo->getLastTracedStatements();
printf("The last query took %sms to execute", $tracedStmt->getDuration());
Also provides a ProxyTraceablePDO for custom PDO sublasses. Wrap your custom
PDO object inside it and property access and method calls will be forwarded.
Install using composer:
{
"require": {
"maximebf/traceable-pdo": "1.*"
}
}
统计信息
- 总下载量: 27.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-08-17