Git Product home page Git Product logo

stefano-db-profiler's Introduction

Db Profiler

Dependencies
Dependency Status

A ZF2 module to profile db queries using \Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar

Db Profiler


Features

  • profiling db queries
  • support multiple db connections

Dependencies

  • Zend Framework 2
  • Zend Developer Tools

Instalation

  • Add following line to your composer.json file "stefano/stefano-db-profiler": "*"

  • run composer update

  • Add StefanoDbProfiler to your application.config.php

  • Enable profiler for your Db Adapter or Adapters

'db' => array(
    'driver' => 'Pdo_Mysql',
    'database' => 'db',
    'username' => 'username',
    'password' => 'pass',
    'profiler' => true, //this line enable db profiler
)
  • Library uses Zend\Db\Adapter\Adapter service key. If you are uses different key for your Db Adapter you must set it by configuration options.

Options

Configuration options are available in config/stefano.db.profiler.global.php.dist file. If you want to change the default ones, copy it in your config/autoload directory, remove the .dist extension and edit it.

Options available :

  • dbAdapterServiceManagerKey : List of all Db Adapter service manager keys which you want to profile. Zend\Db\Adapter\Adapter is default

stefano-db-profiler's People

Contributors

bartko-s avatar

Watchers

Tomáš Fejfar avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.