mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 05:36:00 +00:00
load wizard from shell window
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user