Merge branch 'master' into feature/duckdb-2

This commit is contained in:
SPRINX0\prochazka
2025-04-24 09:25:45 +02:00
117 changed files with 5141 additions and 2829 deletions

View File

@@ -240,6 +240,19 @@ const mysqlDriverBase = {
if (options.force) {
args.push('--force');
}
if (options.lockTables) {
args.push('--lock-tables');
}
if (options.skipLockTables) {
args.push('--skip-lock-tables');
}
if (options.singleTransaction) {
args.push('--single-transaction');
}
if (options.customArgs?.trim()) {
const customArgs = options.customArgs.split(/\s+/).filter(arg => arg.trim() != '');
args.push(...customArgs);
}
args.push(database);
return { command, args };
},
@@ -312,6 +325,32 @@ const mysqlDriverBase = {
default: true,
disabledFn: values => values.noStructure,
},
{
type: 'checkbox',
label: 'Lock tables',
name: 'lockTables',
default: false,
disabledFn: values => values.skipLockTables || values.singleTransaction,
},
{
type: 'checkbox',
label: 'Skip lock tables',
name: 'skipLockTables',
default: false,
disabledFn: values => values.lockTables || values.singleTransaction,
},
{
type: 'checkbox',
label: 'Single transaction',
name: 'singleTransaction',
default: false,
disabledFn: values => values.lockTables || values.skipLockTables,
},
{
type: 'text',
label: 'Custom arguments',
name: 'customArgs',
},
];
}
return null;

View File

@@ -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,