A collection of scripts to run SQL in a shorter way, like:
l users -- equivlant to: select * from users;
- Download or clone
- Change Configuration File or just test with the default
cd mysql
cp my.cnf .my.cnf
- change .my.cnf to your configuration
sh ./g.sh
l users
; select * from users;
s users name,type id=1
; select name,type from users where id=1;
c users
; select count(*) from users;
sh users
; show create table users;
g users name
; select name, count(*) from users group by name;
del users id=1
; delete from users where id=1;
Scripts are needed for other databases.
- 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
- Submit a pull request :D
- history
- auto-completion
- more database adaptors
TODO: Write history
TODO: Write credits
MIT