| java.lang.Object org.h2.tools.Script
Script | public class Script (Code) | | Creates a SQL script file by extracting the schema and data of a database.
|
Method Summary | |
public static void | execute(String url, String user, String password, String fileName) Backs up a database to a file. | public static void | executeScript(String url, String user, String password, String fileName, String options1, String options2) | public static void | main(String[] args) The command line interface for this tool.
The options must be split into strings like this: "-user", "sa",...
Options are case sensitive. |
execute | public static void execute(String url, String user, String password, String fileName) throws SQLException(Code) | | Backs up a database to a file.
Parameters: url - the database URL Parameters: user - the user name Parameters: password - the password Parameters: fileName - the script file throws: SQLException - |
main | public static void main(String[] args) throws SQLException(Code) | | 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:
- -help or -? (print the list of options)
- -url jdbc:h2:... (database URL)
- -user username
- -password password
- -script filename (default file name is backup.sql)
- -options to specify a list of options (only for H2)
Parameters: args - the command line arguments throws: SQLException - |
|
|