提交 6cebed58 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 c2b5eebf
...@@ -165,20 +165,20 @@ public class Shell extends Tool implements Runnable { ...@@ -165,20 +165,20 @@ public class Shell extends Tool implements Runnable {
} }
/** /**
* Run the shell tool with the given connection and command line settings.<br> * Run the shell tool with the given connection and command line settings.
* The connection will be closed when the shell exits. * The connection will be closed when the shell exits.
* This is primary used to integrate the Shell into another application. * This is primary used to integrate the Shell into another application.
* <p> * <p>
* <i>Note:</i> using the "-url" option in {@code args} doesn't make much sense * Note: using the "-url" option in {@code args} doesn't make much sense
* since it will override the {@code conn} parameter. * since it will override the {@code conn} parameter.
* *
* @param conn the connection * @param conn the connection
* @param args the command line settings * @param args the command line settings
*/ */
public void runTool(Connection conn, String... args) throws SQLException { public void runTool(Connection conn, String... args) throws SQLException {
this.conn = conn; this.conn = conn;
this.stat = conn.createStatement(); this.stat = conn.createStatement();
runTool(args); runTool(args);
} }
private void showHelp() { private void showHelp() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论