Package org.sqlite
Class ExtendedCommand.RestoreCommand
java.lang.Object
org.sqlite.ExtendedCommand.RestoreCommand
- All Implemented Interfaces:
ExtendedCommand.SQLExtension
- Enclosing class:
- ExtendedCommand
public static class ExtendedCommand.RestoreCommand
extends Object
implements ExtendedCommand.SQLExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestoreCommand
(String targetDB, String srcFile) Constructs a RestoreCommand instance that restores the database from a given source file. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Parses SQLite database restore command and creates a RestoreCommand object.
-
Field Details
-
targetDB
-
srcFile
-
-
Constructor Details
-
RestoreCommand
Constructs a RestoreCommand instance that restores the database from a given source file.- Parameters:
targetDB
- Target database namesrcFile
- Source file name
-
-
Method Details
-
parse
Parses SQLite database restore command and creates a RestoreCommand object.- Parameters:
sql
- SQLite restore backup command- Returns:
- RestoreCommand object.
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceExtendedCommand.SQLExtension
- Throws:
SQLException
- See Also:
-