File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ public static SQLExtension parse(String sql) throws SQLException {
40
40
if (sql == null )
41
41
return null ;
42
42
43
- // if (sql.startsWith("backup"))
44
- // return BackupCommand.parse(sql);
45
- // else if (sql.startsWith("restore"))
46
- // return RestoreCommand.parse(sql);
43
+ if (sql .startsWith ("backup" ))
44
+ return BackupCommand .parse (sql );
45
+ else if (sql .startsWith ("restore" ))
46
+ return RestoreCommand .parse (sql );
47
47
48
48
return null ;
49
49
}
@@ -103,7 +103,7 @@ public static BackupCommand parse(String sql) throws SQLException {
103
103
}
104
104
105
105
public void execute (DB db ) throws SQLException {
106
- // db.backup(srcDB, destFile, null);
106
+ db .backup (srcDB , destFile , null );
107
107
}
108
108
109
109
}
@@ -149,7 +149,7 @@ public static RestoreCommand parse(String sql) throws SQLException {
149
149
* @see org.sqlite.ExtendedCommand.SQLExtension#execute(org.sqlite.core.DB)
150
150
*/
151
151
public void execute (DB db ) throws SQLException {
152
- // db.restore(targetDB, srcFile, null);
152
+ db .restore (targetDB , srcFile , null );
153
153
}
154
154
}
155
155
Original file line number Diff line number Diff line change 11
11
ConnectionTest .class ,
12
12
DBMetaDataTest .class ,
13
13
ErrorMessageTest .class ,
14
- // ExtendedCommandTest.class, //Backup / restore API is disabled
14
+ ExtendedCommandTest .class ,
15
15
ExtensionTest .class ,
16
16
FetchSizeTest .class ,
17
17
InsertQueryTest .class ,
You can’t perform that action at this time.
0 commit comments