MCPcopy Create free account
hub / github.com/riverqueue/river / pgEnvConfigured

Function pgEnvConfigured

cmd/river/rivercli/command.go:196–198  ·  view source on GitHub ↗

Determines if there's a minimum number of `PG*` env vars configured to consider that configurable path viable. A `--database-url` parameter will take precedence.

()

Source from the content-addressed store, hash-verified

194// consider that configurable path viable. A `--database-url` parameter will
195// take precedence.
196func pgEnvConfigured() bool {
197 return os.Getenv("PGDATABASE") != ""
198}

Callers 4

ValidateMethod · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85
RunCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…