MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Databases

Method Databases

internal/postgres/hba.go:119–125  ·  view source on GitHub ↗

Databases makes hba match connections made to specific databases.

(name string, names ...string)

Source from the content-addressed store, hash-verified

117
118// Databases makes hba match connections made to specific databases.
119func (hba *HostBasedAuthentication) Databases(name string, names ...string) *HostBasedAuthentication {
120 hba.database = hba.quoteDatabase(name)
121 for _, n := range names {
122 hba.database += "," + hba.quoteDatabase(n)
123 }
124 return hba
125}
126
127// Local makes hba match connection attempts using Unix-domain sockets.
128func (hba *HostBasedAuthentication) Local() *HostBasedAuthentication {

Callers 3

generatePostgresHBAMethod · 0.80
NewHBAsFunction · 0.80

Calls 1

quoteDatabaseMethod · 0.95

Tested by 1