MCPcopy Index your code
hub / github.com/bytebase/bytebase / FormatInstance

Function FormatInstance

backend/common/resource_name.go:582–584  ·  view source on GitHub ↗
(resourceID string)

Source from the content-addressed store, hash-verified

580}
581
582func FormatInstance(resourceID string) string {
583 return fmt.Sprintf("%s%s", InstanceNamePrefix, resourceID)
584}
585
586func FormatDatabase(instance string, database string) string {
587 return fmt.Sprintf("%s/%s%s", FormatInstance(instance), DatabaseIDPrefix, database)

Callers 2

FormatDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected