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 java.lang.Object implements ExtendedCommand.SQLExtension
-
-
Constructor Summary
Constructors Constructor Description RestoreCommand(java.lang.String targetDB, java.lang.String srcFile)
Constructs a RestoreCommand instance that restores the database from a given source file.
-
Method Summary
Modifier and Type Method Description void
execute(DB db)
static ExtendedCommand.RestoreCommand
parse(java.lang.String sql)
Parses SQLite database restore command and creates a RestoreCommand object.
-
-
-
Method Detail
-
parse
public static ExtendedCommand.RestoreCommand parse(java.lang.String sql) throws java.sql.SQLException
Parses SQLite database restore command and creates a RestoreCommand object.- Parameters:
sql
- SQLite restore backup command- Returns:
- RestoreCommand object.
- Throws:
java.sql.SQLException
-
execute
public void execute(DB db) throws java.sql.SQLException
- Specified by:
execute
in interfaceExtendedCommand.SQLExtension
- Throws:
java.sql.SQLException
- See Also:
ExtendedCommand.SQLExtension.execute(org.sqlite.core.DB)
-
-