mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46: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',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
label: 'Custom arguments',
|
||||
name: 'customArgs',
|
||||
},
|
||||
];
|
||||
}
|
||||
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 {
|
||||
command,
|
||||
|
||||
Reference in New Issue
Block a user