Take a peek into the MySQL queries made during your application's requests.
Ruby HTML
Switch branches/tags
Latest commit ff583a9 Jun 21, 2017 @dewski dewski Update changelog
Permalink
Failed to load latest commit information.
app/views/peek/views Rename gem to peek Mar 28, 2013
lib Bump version Jun 21, 2017
.gitignore Initial commit Mar 9, 2013
CHANGELOG.md Update changelog Jun 21, 2017
Gemfile Rename gem to peek Mar 28, 2013
LICENSE.txt Initial commit Mar 9, 2013
README.md Rename gem to peek Mar 28, 2013
Rakefile Initial commit Mar 9, 2013
peek-mysql2.gemspec Add MIT license to gemspec Apr 3, 2017

README.md

Peek::Mysql2

Take a peek into the MySQL queries made during your application's requests.

Things this peek view provides:

  • Total number of MySQL queries called during the request
  • The duration of the queries made during the request

Installation

Add this line to your application's Gemfile:

gem 'peek-mysql2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install peek-mysql2

Usage

Add the following to your config/initializers/peek.rb:

Peek.into Peek::Views::Mysql2

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request