Lucky PG Extras
Crystal port of Ruby PG Extras which is a Ruby port of Heroku PG Extras.
Installation
-
Add the dependency to your
shard.yml:dependencies: lucky_pg_extras: github: matthewmcgarvey/lucky_pg_extras -
Run
shards install -
Require the shard in
src/shards.crrequire "lucky_pg_extras" -
Set up the configuration in
config/lucky_pg_extras.crLuckyPgExtras.configure do |settings| settings.database = AppDatabase end
Some of the queries (e.g., calls and outliers) require pg_stat_statements extension enabled.
Usage
Running lucky -h should now show the pg_extras commands that are available.
Development
TODO Write development instructions here
Contributing
- Fork it (https://github.com/matthewmcgarvey/lucky_pg_extras/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Matthew McGarvey - creator and maintainer