mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 11:56:00 +00:00
export model - schema filter WIP
This commit is contained in:
@@ -440,7 +440,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
exportModel_meta: true,
|
exportModel_meta: true,
|
||||||
async exportModel({ conid, database, outputFolder }, req) {
|
async exportModel({ conid, database, outputFolder, schema }, req) {
|
||||||
testConnectionPermission(conid, req);
|
testConnectionPermission(conid, req);
|
||||||
|
|
||||||
const realFolder = outputFolder.startsWith('archive:')
|
const realFolder = outputFolder.startsWith('archive:')
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
export let conidName;
|
export let conidName;
|
||||||
export let databaseName;
|
export let databaseName;
|
||||||
|
export let allowAllSchemas = false;
|
||||||
|
|
||||||
const { values } = getFormContext();
|
const { values } = getFormContext();
|
||||||
$: schemaList = useSchemaList({ conid: $values[conidName], database: $values[databaseName] });
|
$: schemaList = useSchemaList({ conid: $values[conidName], database: $values[databaseName] });
|
||||||
@@ -17,5 +18,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if schemaOptions.length > 0}
|
{#if schemaOptions.length > 0}
|
||||||
<FormSelectField {...$$restProps} options={schemaOptions} />
|
<FormSelectField
|
||||||
|
{...$$restProps}
|
||||||
|
options={allowAllSchemas ? [{ value: '__all', label: '(All schemas)' }, ...schemaOptions] : schemaOptions}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user