https://github.com/peek/peek-pg
Take a peek into the Postgres queries made during your application's requests.
https://github.com/peek/peek-pg
peek postgres ruby
Last synced: 9 months ago
JSON representation
Take a peek into the Postgres queries made during your application's requests.
- Host: GitHub
- URL: https://github.com/peek/peek-pg
- Owner: peek
- License: mit
- Created: 2013-03-10T00:47:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T11:30:03.000Z (almost 7 years ago)
- Last Synced: 2025-05-12T23:36:29.248Z (12 months ago)
- Topics: peek, postgres, ruby
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 16
- Watchers: 3
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Peek::PG
Take a peek into the Postgres queries made during your application's requests.
Things this peek view provides:
- Total number of Postgres 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-pg'
And then execute:
$ bundle
Or install it yourself as:
$ gem install peek-pg
## Usage
Add the following to your `config/initializers/peek.rb`:
```ruby
Peek.into Peek::Views::PG
```
## 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