Package org.sqlite
Class ExtendedCommand.BackupCommand
java.lang.Object
org.sqlite.ExtendedCommand.BackupCommand
- All Implemented Interfaces:
ExtendedCommand.SQLExtension
- Enclosing class:
- ExtendedCommand
public static class ExtendedCommand.BackupCommand
extends Object
implements ExtendedCommand.SQLExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBackupCommand
(String srcDB, String destFile) Constructs a BackupCommand instance that backup the database to a target file. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Parses SQLite database backup command and creates a BackupCommand object.
-
Field Details
-
srcDB
-
destFile
-
-
Constructor Details
-
BackupCommand
Constructs a BackupCommand instance that backup the database to a target file.- Parameters:
srcDB
- Source database name.destFile
- Target file name.
-
-
Method Details
-
parse
Parses SQLite database backup command and creates a BackupCommand object.- Parameters:
sql
- SQLite database backup command.- Returns:
- BackupCommand object.
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceExtendedCommand.SQLExtension
- Throws:
SQLException
-