承接 maximebf/traceable-pdo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maximebf/traceable-pdo

最新稳定版本:1.0

Composer 安装命令:

composer require maximebf/traceable-pdo

包简介

Log SQL statements executed using a PDO instance

关键字:

README 文档

README

Build Status

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

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-08-17