定制 aaronwebb/aura-sql-debug 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aaronwebb/aura-sql-debug

Composer 安装命令:

composer require aaronwebb/aura-sql-debug

包简介

Extends an Aura ExtendedPdo connection with debug logging.

README 文档

README

Build Status

This library provides a decorated connection that logs profiles of PDO commands to a standard PSR-3 logger.

Installation

Install the latest version with

require aaronwebb/aura-sql-debug

Basic Usage

<?php
use Aura\Sql\ExtendedPdo;
use Aura\Sql\Profiler;
use Webb\Aura\Sql\ExtendedDebugPdo;

$logger = new Logger('database');
$logger->pushHandler(new ErrorLogHandler());

$pdo = new ExtendedDebugPdo(
  new ExtendedPdo(
    'mysql:host=localhost;dbname=test',
    'username',
    'password',
    array(), // driver options as key-value pairs
    array()  // attributes as key-value pairs
  ),
  $logger,
  new Profiler()
);

统计信息

  • 总下载量: 1.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-12