mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
execute query from shell
This commit is contained in:
@@ -18,6 +18,15 @@ export function extractShellApiPlugins(functionName, props): string[] {
|
||||
return res;
|
||||
}
|
||||
|
||||
export function extractPackageName(name): string {
|
||||
if (!name) return null;
|
||||
const nsMatch = name.match(/^([^@]+)@([^@]+)/);
|
||||
if (nsMatch) {
|
||||
return nsMatch[2];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function extractShellApiFunctionName(functionName) {
|
||||
const nsMatch = functionName.match(/^([^@]+)@([^@]+)/);
|
||||
if (nsMatch) {
|
||||
|
||||
Reference in New Issue
Block a user