MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / buildPostgres

Method buildPostgres

pkg/specs/secrets.go:107–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (c connectionStringBuilder) buildPostgres() string {
108 postgresURI := url.URL{
109 Scheme: "postgresql",
110 User: url.UserPassword(c.username, c.password),
111 Host: c.host,
112 Path: c.dbname,
113 }
114
115 return postgresURI.String()
116}
117
118func (c connectionStringBuilder) buildJdbc() string {
119 jdbcURI := &url.URL{

Callers 1

CreateSecretFunction · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected