MCPcopy Create free account
hub / github.com/bytebase/bytebase / getInstanceId

Function getInstanceId

frontend/src/store/modules/v1/common.ts:174–180  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

172};
173
174export const getInstanceId = (name: string): string[] => {
175 const tokens = getNameParentTokens(name, [instanceNamePrefix]);
176 if (tokens.length !== 1) {
177 return [""];
178 }
179 return tokens;
180};
181
182export const getInstanceAndDatabaseId = (name: string): string[] => {
183 const tokens = getNameParentTokens(name, [

Callers

nothing calls this directly

Calls 1

getNameParentTokensFunction · 0.85

Tested by

no test coverage detected