Squelch—JDBC Console SQL Client |
---|
This is a basic SQL client that will let you connect to a database so long as you have:
To use it,
db.user=username-goes-here db.password=password-goes-here db.url=jdbc:postgresql:dbname(You can also pass these settings as parameters on the command-line but you may not want to do that, because anyone else on the server can then spot your db password in the process listing.)
java -jar squelch-0.1-jar-with-dependencies.jar -c /path/to/config/text/fileor like this:
java -jar squelch-0.1-jar-with-dependencies.jar -r jdbc:postgresql:dbname -u username-goes-here -p password-goes-here
$ CLASSPATH=/path/to/jdbc/driver.jar:`pwd`/squelch-0.1.jar-with-dependencies.jar:${CLASSPATH}and then invoke Squelch like this:
$ java net.jaekl.squelch.Squelch -c /path/to/config/text/fileor like this:
java -jar squelch-0.1-jar-with-dependencies.jar -r jdbc:oracle:thin:@//hostname:1521/dbname -u username-goes-here -p password-goes-hereNote: As of this writing, I have tested Squelch with PostgreSQL and Oracle. If you have trouble with MySQL or SQL Server, please let me know.
Commands are currently limited to:
To build Squelch from source, fetch the code from my GIT repository. I try to keep the head-of-stream in a good state, but you may want to double-check by visiting my Jenkins server, and the code coverage report first.
Provided that you have
$ mvn package
This page was last updated on Fri Jun 24 19:57:06 JST 2016 |