load wizard from shell window

This commit is contained in:
Jan Prochazka
2020-06-18 15:35:57 +02:00
parent 8425fc46a7
commit 694e76b654
5 changed files with 36 additions and 5 deletions

View File

@@ -108,7 +108,7 @@ function getTargetExpr(sourceName, values, targetConnection, targetDriver) {
}
}
export default async function createImpExpScript(values) {
export default async function createImpExpScript(values, addEditorInfo = true) {
const script = new ScriptWriter();
const [sourceConnection, sourceDriver] = await getConnection(
@@ -135,6 +135,10 @@ export default async function createImpExpScript(values) {
script.copyStream(sourceVar, targetVar);
script.put();
}
if (addEditorInfo) {
script.comment('@ImportExportConfigurator');
script.comment(JSON.stringify(values));
}
return script.s;
}