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

Function FormatDatabase

backend/common/resource_name.go:586–588  ·  view source on GitHub ↗
(instance string, database string)

Source from the content-addressed store, hash-verified

584}
585
586func FormatDatabase(instance string, database string) string {
587 return fmt.Sprintf("%s/%s%s", FormatInstance(instance), DatabaseIDPrefix, database)
588}
589
590func FormatRole(role string) string {
591 return fmt.Sprintf("%s%s", RolePrefix, role)

Callers 15

unfoldDatabaseTargetsFunction · 0.92
unfoldSpecTargetsFunction · 0.92
backupDataMethod · 0.92
StringMethod · 0.92
UpdateDatabaseMethod · 0.92
preCheckAccessMethod · 0.92
createQueryHistoryMethod · 0.92
authorizeWriteTargetsMethod · 0.92
GetRevisionMethod · 0.92

Calls 1

FormatInstanceFunction · 0.85

Tested by

no test coverage detected