func ResolveDBConfig(ctx context.Context, c *db.Config) error {
	ev := env.GetVars(ctx)
	err := c.Resolve(ctx)
	if err == nil {
		return nil
	}

	return envResolveError(err, ev)
}
// ResolveDBConfig is intended to be used to help debug issues resolving
// a `db.Config` from the environment.
//
// In the case of failure, this wraps the `Resolve()` error with a helpful
// message and a list of all relevant environment variables.
ResolveDBConfig is intended to be used to help debug issues resolving
a `db.Config` from the environment.

In the case of failure, this wraps the `Resolve()` error with a helpful
message and a list of all relevant environment variables.
// ResolveDBConfig is intended to be used to help debug issues resolving // a ` db . Config ` from the environment . // // In the case of failure this wraps the ` Resolve () ` error with a helpful // message and a list of all relevant environment variables .
func ResolveDBConfig(ctx context.Context, c *db.Config) error {
	ev := env.GetVars(ctx)
	err := c.Resolve(ctx)
	if err == nil {
		return nil
	}
	return envResolveError(err, ev)
}
func ResolveDBConfig ( ctx context . Context , c * db . Config ) error { ev := env . GetVars ( ctx ) err := c . Resolve ( ctx ) if err == nil { return nil } return envResolveError ( err , ev ) }
ResolveDBConfig is intended to be used to help debug issues resolving
a `db.Config` from the environment.
ResolveDBConfig is intended to be used to help debug issues resolving a ` db . Config ` from the environment .