public static class ExtendedCommand.BackupCommand extends java.lang.Object implements ExtendedCommand.SQLExtension
Modifier and Type | Field and Description |
---|---|
java.lang.String |
destFile |
java.lang.String |
srcDB |
Constructor and Description |
---|
BackupCommand(java.lang.String srcDB,
java.lang.String destFile)
Constructs a BackupCommand instance that backup the database to a target file.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(totalcross.db.sqlite.DB db) |
static ExtendedCommand.BackupCommand |
parse(java.lang.String sql)
Parses SQLite database backup command and creates a BackupCommand object.
|
public final java.lang.String srcDB
public final java.lang.String destFile
public BackupCommand(java.lang.String srcDB, java.lang.String destFile)
srcDB
- Source database name.destFile
- Target file name.public static ExtendedCommand.BackupCommand parse(java.lang.String sql) throws java.sql.SQLException
sql
- SQLite database backup command.java.sql.SQLException
public void execute(totalcross.db.sqlite.DB db) throws java.sql.SQLException
execute
in interface ExtendedCommand.SQLExtension
java.sql.SQLException