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

Function getInstanceIdOption

frontend/src/utils/expr.ts:59–65  ·  view source on GitHub ↗
(ins: Instance)

Source from the content-addressed store, hash-verified

57});
58
59const getInstanceIdOption = (ins: Instance): LabeledOption => {
60 const instanceId = extractInstanceResourceName(ins.name);
61 return {
62 label: `${ins.title} (${instanceId})`,
63 value: instanceId,
64 };
65};
66
67const getDatabaseIdOptions = (databases: Database[]): LabeledOption[] => {
68 return databases.map((database) => {

Callers 1

Calls 1

Tested by

no test coverage detected