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

Method buildJdbc

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

Source from the content-addressed store, hash-verified

116}
117
118func (c connectionStringBuilder) buildJdbc() string {
119 jdbcURI := &url.URL{
120 Scheme: "jdbc:postgresql",
121 Host: c.host,
122 Path: c.dbname,
123 }
124 q := jdbcURI.Query()
125 q.Set("user", c.username)
126 q.Set("password", c.password)
127 jdbcURI.RawQuery = q.Encode()
128 return jdbcURI.String()
129}

Callers 1

CreateSecretFunction · 0.95

Calls 3

EncodeMethod · 0.80
SetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected