export model - schema filter WIP

This commit is contained in:
SPRINX0\prochazka
2024-11-07 17:38:22 +01:00
parent 98464e414b
commit bdd55d8432
2 changed files with 6 additions and 2 deletions

View File

@@ -440,7 +440,7 @@ module.exports = {
},
exportModel_meta: true,
async exportModel({ conid, database, outputFolder }, req) {
async exportModel({ conid, database, outputFolder, schema }, req) {
testConnectionPermission(conid, req);
const realFolder = outputFolder.startsWith('archive:')

View File

@@ -6,6 +6,7 @@
export let conidName;
export let databaseName;
export let allowAllSchemas = false;
const { values } = getFormContext();
$: schemaList = useSchemaList({ conid: $values[conidName], database: $values[databaseName] });
@@ -17,5 +18,8 @@
</script>
{#if schemaOptions.length > 0}
<FormSelectField {...$$restProps} options={schemaOptions} />
<FormSelectField
{...$$restProps}
options={allowAllSchemas ? [{ value: '__all', label: '(All schemas)' }, ...schemaOptions] : schemaOptions}
/>
{/if}