public static class ExtendedCommand.RestoreCommand extends Object implements ExtendedCommand.SQLExtension
Constructor and Description |
---|
RestoreCommand(String targetDB,
String srcFile)
Constructs a RestoreCommand instance that restores the database from a given source file.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(DB db) |
static ExtendedCommand.RestoreCommand |
parse(String sql)
Parses SQLite database restore command and creates a RestoreCommand object.
|
public static ExtendedCommand.RestoreCommand parse(String sql) throws SQLException
sql
- SQLite restore backup commandSQLException
public void execute(DB db) throws SQLException
execute
in interface ExtendedCommand.SQLExtension
SQLException
ExtendedCommand.SQLExtension.execute(org.sqlite.core.DB)
Copyright © 2021. All rights reserved.