Dbsh
A database console like psql. This is a proof of concept; use at your own risk.
Installation
$ gem install dbsh
You'll need to install the right database gem to get connected. For example:
$ gem install mysql2
Dbsh uses Sequel, so you should be able to connect to anything Sequel can.
Usage
Define a connection in ~/.dbsh
:
mydb:
adapter: mysql
host: localhost
username: root
password: password
database: mydb
Then run dbsh
with your connection:
$ dbsh mydb
And ask dbsh for help:
> \h
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request