mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
json export in configurator, prepare for table mapping
This commit is contained in:
@@ -24,9 +24,16 @@ export default async function createImpExpScript(values) {
|
||||
});
|
||||
|
||||
const targetVar = script.allocVariable();
|
||||
script.assign(targetVar, 'csvWriter', {
|
||||
fileName: `${fullName.pureName}.csv`,
|
||||
});
|
||||
if (values.targetStorageType == 'csv') {
|
||||
script.assign(targetVar, 'csvWriter', {
|
||||
fileName: `${fullName.pureName}.csv`,
|
||||
});
|
||||
}
|
||||
if (values.targetStorageType == 'jsonl') {
|
||||
script.assign(targetVar, 'jsonLinesWriter', {
|
||||
fileName: `${fullName.pureName}.jsonl`,
|
||||
});
|
||||
}
|
||||
|
||||
script.copyStream(sourceVar, targetVar);
|
||||
script.put();
|
||||
|
||||
Reference in New Issue
Block a user