mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 05:16:00 +00:00
export from duckdb works
This commit is contained in:
@@ -27,15 +27,12 @@ export function extractPackageName(name): string {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function extractShellApiFunctionName(functionName, usePrefixForDbGateApi) {
|
||||
export function compileShellApiFunctionName(functionName) {
|
||||
const nsMatch = functionName.match(/^([^@]+)@([^@]+)/);
|
||||
if (nsMatch) {
|
||||
return `${_camelCase(nsMatch[2])}.shellApi.${nsMatch[1]}`;
|
||||
}
|
||||
if (usePrefixForDbGateApi) {
|
||||
return `dbgateApi.${functionName}`;
|
||||
}
|
||||
return functionName;
|
||||
return `dbgateApi.${functionName}`;
|
||||
}
|
||||
|
||||
export function evalShellApiFunctionName(functionName, dbgateApi, requirePlugin) {
|
||||
|
||||
Reference in New Issue
Block a user