mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 07:16:00 +00:00
SYNC: pgdump custom args
This commit is contained in:
committed by
Diflow
parent
3d8c732258
commit
f0f5558f3e
@@ -267,6 +267,11 @@ EXECUTE FUNCTION function_name();`,
|
|||||||
name: 'noOwner',
|
name: 'noOwner',
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'text',
|
||||||
|
label: 'Custom arguments',
|
||||||
|
name: 'customArgs',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@@ -304,6 +309,10 @@ EXECUTE FUNCTION function_name();`,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (options.customArgs?.trim()) {
|
||||||
|
const customArgs = options.customArgs.split(/\s+/).filter(arg => arg.trim() != '');
|
||||||
|
args.push(...customArgs);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
command,
|
command,
|
||||||
|
|||||||
Reference in New Issue
Block a user