neurolabs / henplus

HenPlus is a SQL shell that can handle multiple sessions in parallel. The commandline interface with the usual history functions features TAB-completion for commands, tables and columns. Database connect via JDBC.
GNU General Public License v2.0
97 stars 51 forks source link

ConnectCommand to support connect url alias user password #43

Open venkatramanm opened 8 years ago

venkatramanm commented 8 years ago

I wanted to use henplus as a script to churn out some queries from different databases. Some thing like henplus <<EOF connect url1 alias1 user1 password1 ... connect url2 alias2 user2 password2 ...

EOF Since the connect command asked user and password on the command prompt, it was not usable as part of a non interactive script. Hence this change.