MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetSuperUserAndPassword

Function GetSuperUserAndPassword

server/auth/init.go:44–56  ·  view source on GitHub ↗

GetSuperUserAndPassword returns the superuser and password for the server to use, as defined in the environment

()

Source from the content-addressed store, hash-verified

42
43// GetSuperUserAndPassword returns the superuser and password for the server to use, as defined in the environment
44func GetSuperUserAndPassword() (string, string) {
45 user := "postgres"
46 if envUser := os.Getenv(doltgresUserEnvVar); envUser != "" {
47 user = envUser
48 }
49
50 password := "password"
51 if envPassword := os.Getenv(doltgresPasswordEnvVar); envPassword != "" {
52 password = envPassword
53 }
54
55 return user, password
56}

Callers 3

runServerFunction · 0.92
createDefaultDatabaseFunction · 0.92
dbInitDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected