/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-url "<url>"]</td> * <td>The database URL (jdbc:h2:...)</td></tr> * <tr><td>[-user <user>]</td> * <td>The user name</td></tr> * <tr><td>[-password <pwd>]</td> * <td>The password</td></tr> * <tr><td>[-driver <class>]</td> * <td>The JDBC driver class to use (not required in most cases)</td></tr> * <tr><td>[-sql "<statements>"]</td> * <td>Execute the SQL statements and exit</td></tr> * <tr><td>[-properties "<dir>"]</td> * <td>Load the server properties from this directory</td></tr> * </table> * If special characters don't work as expected, you may need to use * -Dfile.encoding=UTF-8 (Mac OS X) or CP850 (Windows). * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new Shell().runTool(args); }
/** * The command line interface for this tool. The options must be split into * strings like this: "-user", "sa",... Options are case sensitive. The * following options are supported: * <ul> * <li>-help or -? (print the list of options) </li> * <li>-url jdbc:h2:... (database URL) </li> * <li>-user username </li> * <li>-password password </li> * <li>-driver driver the JDBC driver class name (not required for most * databases) </li> * </ul> * * @param args the command line arguments * @throws SQLException */ public static void main(String[] args) throws SQLException { new Shell().run(args); }
/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-url "<url>"]</td> * <td>The database URL (jdbc:h2:...)</td></tr> * <tr><td>[-user <user>]</td> * <td>The user name</td></tr> * <tr><td>[-password <pwd>]</td> * <td>The password</td></tr> * <tr><td>[-driver <class>]</td> * <td>The JDBC driver class to use (not required in most cases)</td></tr> * <tr><td>[-sql "<statements>"]</td> * <td>Execute the SQL statements and exit</td></tr> * <tr><td>[-properties "<dir>"]</td> * <td>Load the server properties from this directory</td></tr> * </table> * If special characters don't work as expected, you may need to use * -Dfile.encoding=UTF-8 (Mac OS X) or CP850 (Windows). * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new Shell().runTool(args); }
/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-url "<url>"]</td> * <td>The database URL (jdbc:h2:...)</td></tr> * <tr><td>[-user <user>]</td> * <td>The user name</td></tr> * <tr><td>[-password <pwd>]</td> * <td>The password</td></tr> * <tr><td>[-driver <class>]</td> * <td>The JDBC driver class to use (not required in most cases)</td></tr> * <tr><td>[-sql "<statements>"]</td> * <td>Execute the SQL statements and exit</td></tr> * <tr><td>[-properties "<dir>"]</td> * <td>Load the server properties from this directory</td></tr> * </table> * If special characters don't work as expected, you may need to use * -Dfile.encoding=UTF-8 (Mac OS X) or CP850 (Windows). * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new Shell().runTool(args); }