A DB2 console with history and autocomplete support, and few other goodies

DB2 console mode does not support readline and autocomplete, this is a wrapper for the db2 command mode with support for both. It also tries to make using db2 a little bit more tolerable, adding support for psql-like commands and other shortcuts.

Install

  • apt-get install rlwrap
  • gem install db2c

Contributing

Once you've made your great commits:

  1. Fork db2c
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create an Issue with a link to your branch
  5. That's it!

Acknowledgement

  • Chris Jester-Young (CKY) found out the problem of using shell metacharacters when executing commands from Ruby.
  • The initial script was inspired by defunkt's repl, for a genenral purpose repl/wrapper, this is your friend.

Meta

Author

Samer Abukhait [email protected], @s4mer