Opens and closes the JDBC connection for each command
authorChris Jaekl <cejaekl@yahoo.com>
Thu, 13 Oct 2016 11:42:11 +0000 (20:42 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Thu, 13 Oct 2016 11:42:11 +0000 (20:42 +0900)
commit4ddb397a3f02b0cedeee070b8b10b1a8fa2c8ff3
tree82378af80324611d6bd5bf921ea8906da855f9ef
parent8b5803bd7baf204df6f8d22371e9523e5c9b7720
Opens and closes the JDBC connection for each command

Instead of holding the connection open for the duration of the application,
open a fresh connection for each command, and close it immediately after the
command completes.  This may reduce the risk of having connections hang around
for a while, if the JVM terminates unexpectedly (e.g., if the ssh session gets
killed and the console goes away).
pom.xml
src/main/java/net/jaekl/squelch/Squelch.java