public static class ExtendedCommand.RestoreCommand extends java.lang.Object implements ExtendedCommand.SQLExtension
Modifier and Type | Field and Description |
---|---|
java.lang.String |
srcFile |
java.lang.String |
targetDB |
Constructor and Description |
---|
RestoreCommand(java.lang.String targetDB,
java.lang.String srcFile)
Constructs a RestoreCommand instance that restores the database from a given source file.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(totalcross.db.sqlite.DB db) |
static ExtendedCommand.RestoreCommand |
parse(java.lang.String sql)
Parses SQLite database restore command and creates a RestoreCommand object.
|
public final java.lang.String targetDB
public final java.lang.String srcFile
public RestoreCommand(java.lang.String targetDB, java.lang.String srcFile)
targetDB
- Target database namesrcFile
- Source file namepublic static ExtendedCommand.RestoreCommand parse(java.lang.String sql) throws java.sql.SQLException
sql
- SQLite restore backup commandjava.sql.SQLException
public void execute(totalcross.db.sqlite.DB db) throws java.sql.SQLException
execute
in interface ExtendedCommand.SQLExtension
java.sql.SQLException