public class Console extends Tool implements ShutdownHandler
| Constructor and Description |
|---|
Console() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String... args)
When running without options, -tcp, -web, -browser and -pg are started.
|
void |
runTool(java.lang.String... args)
This tool starts the H2 Console (web-) server, as well as the TCP and PG
server.
|
void |
shutdown()
INTERNAL.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(java.lang.String... args)
throws java.sql.SQLException
| [-help] or [-?] | Print the list of options |
| [-url] | Start a browser and connect to this URL |
| [-driver] | Used together with -url: the driver |
| [-user] | Used together with -url: the user name |
| [-password] | Used together with -url: the password |
| [-web] | Start the web server with the H2 Console |
| [-tool] | Start the icon or window that allows to start a browser |
| [-browser] | Start a browser connecting to the web server |
| [-tcp] | Start the TCP server |
| [-pg] | Start the PG server |
args - the command line argumentsjava.sql.SQLException - on failurepublic void runTool(java.lang.String... args)
throws java.sql.SQLException
public void shutdown()
shutdown in interface ShutdownHandler