This is a simple gem to convert Mysql to json. If you've got a lot of data it might explode. I've used it on tables <500MB with no problems.
Add this line to your application's Gemfile:
gem 'mysql2json'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mysql2json
Mysql2json::Data.get("hostname", "database_name", "username", "password")
- 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