Skip to content

Commit

Permalink
adds load script command backported from 3.0
Browse files Browse the repository at this point in the history
refs #7273
  • Loading branch information
robfrank committed Mar 28, 2017
1 parent 79f042b commit cd9cd3b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,18 @@ public void compareDatabases(@ConsoleParameter(name = "db1-url", description = "
}
}

@ConsoleCommand(description = "Load a sql script into the current database", splitInWords = true, onlineHelp = "Console-Command-Load-Script")
public void loadScript(@ConsoleParameter(name = "scripPath", description = "load script scriptPath") final String scriptPath)
throws IOException {

checkForDatabase();

message("\nLoading script " + scriptPath + "...");

executeBatch(scriptPath);

}

@ConsoleCommand(description = "Import a database into the current one", splitInWords = false, onlineHelp = "Console-Command-Import")
public void importDatabase(@ConsoleParameter(name = "options", description = "Import options") final String text)
throws IOException {
Expand Down

0 comments on commit cd9cd3b

Please sign in to comment.