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

Method quote

internal/postgres/hba.go:64–66  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

62var hbaRegexSpecialCharacters = regexp.MustCompile(`[^\pL\pN_]`)
63
64func (*HostBasedAuthentication) quote(value string) string {
65 return `"` + strings.ReplaceAll(value, `"`, `""`) + `"`
66}
67
68func (hba *HostBasedAuthentication) quoteDatabase(name string) string {
69 // Since PostgreSQL 16, a quoted string beginning with slash U+002F is

Callers 6

quoteDatabaseMethod · 0.95
quoteUserMethod · 0.95
MethodMethod · 0.95
OriginMethod · 0.95
NetworkMethod · 0.95
OptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected