Add this line to your application's Gemfile:
gem 'mohair'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mohair
now:
$ bundle exec bin/mohair -q "select all from sometable" -i INDEX
$ bundle exec bin/mohair_dump < data.json
future:
$ bundle exec bin/mohair -i
mohair> select * from sometable
mohair> insert * into ...
mohair>
$ bundle exec bin/mohair -q "select * from sometable"
...
- basic SQL parsing
- select * from table
- select col,col,col from table [where col = "name" and col < 23] [group by col]
- limit 10
- asc/desc
- types: timestamp, float
- recursive representation of json with dot notation
- 2i
- query optimization
- 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
$ rake release