MCPcopy Create free account
hub / github.com/bytebase/dbhub / formatHostDatabase

Function formatHostDatabase

src/utils/startup-table.ts:86–90  ·  view source on GitHub ↗
(host: string, database: string)

Source from the content-addressed store, hash-verified

84 * Format host and database into a single string
85 */
86export function formatHostDatabase(host: string, database: string): string {
87 return host
88 ? database ? `${host}/${database}` : host
89 : database || "";
90}
91
92/**
93 * Generate the startup table showing sources and their tools

Callers 1

generateStartupTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected