mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
export model - schema filter WIP
This commit is contained in:
@@ -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:')
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user