Turn a postgres query result into a csv, so you can send it to people who like csvs.
Add this line to your application's Gemfile:
gem 'pg_to_csv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pg_to_csv
After you get a postgres query result, just call the following command with the csv name to get a csv.
PgToCsv.to_csv(result, name)
- Fork it
- 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 new Pull Request