import from archive

This commit is contained in:
Jan Prochazka
2020-10-18 11:53:35 +02:00
parent e833853d3f
commit 6792b652fb
6 changed files with 88 additions and 21 deletions

View File

@@ -68,6 +68,15 @@ function getSourceExpr(sourceName, values, sourceConnection, sourceDriver) {
if (sourceStorageType == 'jsldata') {
return ['jslDataReader', { jslid: values.sourceJslId }];
}
if (sourceStorageType == 'archive') {
return [
'archiveReader',
{
folderName: values.sourceArchiveFolder,
fileName: sourceName,
},
];
}
throw new Error(`Unknown source storage type: ${sourceStorageType}`);
}