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

Method Validate

cmd/river/rivercli/river_cli.go:693–699  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

691}
692
693func (o *validateOpts) Validate() error {
694 if o.DatabaseURL == "" && !pgEnvConfigured() {
695 return errors.New("either PG* env vars or --database-url must be set")
696 }
697
698 return nil
699}
700
701type validate struct {
702 CommandBase

Callers

nothing calls this directly

Calls 1

pgEnvConfiguredFunction · 0.85

Tested by

no test coverage detected