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

Function getDSN

backend/plugin/db/spanner/spanner.go:305–307  ·  view source on GitHub ↗
(host, database string)

Source from the content-addressed store, hash-verified

303}
304
305func getDSN(host, database string) string {
306 return fmt.Sprintf("%s/databases/%s", host, database)
307}
308
309// get `<database>` from `projects/<project>/instances/<instance>/databases/<database>`.
310func getDatabaseFromDSN(dsn string) (string, error) {

Callers 5

OpenMethod · 0.85
executeDDLMethod · 0.85
QueryConnMethod · 0.85
notFoundDatabaseMethod · 0.85
DumpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected