func (c Config) CreateLoggingDSN() string {
	if c.DSN != "" {
		nc, err := NewConfigFromDSN(c.DSN)
		if err != nil {
			return "Failed to parse DSN: see DATABASE_URL environment variable"
		}
		return nc.CreateLoggingDSN()
	}

	// NOTE: Since `c` is a value receiver, we can modify it without
	//       mutating the actual value.
	c.Password = ""
	return c.CreateDSN()
}
// CreateLoggingDSN creates a postgres connection string from the config suitable for logging.
// It will not include the password.
CreateLoggingDSN creates a postgres connection string from the config suitable for logging.
It will not include the password.
// CreateLoggingDSN creates a postgres connection string from the config suitable for logging . // It will not include the password .
func (c Config) CreateLoggingDSN() string {
	if c.DSN != "" {
		nc, err := NewConfigFromDSN(c.DSN)
		if err != nil {
			return "Failed to parse DSN: see DATABASE_URL environment variable"
		}
		return nc.CreateLoggingDSN()
	}
	c.Password = ""
	return c.CreateDSN()
}
func ( c Config ) CreateLoggingDSN ( ) string { if c . DSN != " " { nc , err := NewConfigFromDSN ( c . DSN ) if err != nil { return " " } return nc . CreateLoggingDSN ( ) } c . Password = " " return c . CreateDSN ( ) }
CreateLoggingDSN creates a postgres connection string from the config suitable for logging.
CreateLoggingDSN creates a postgres connection string from the config suitable for logging .
// NOTE: Since `c` is a value receiver, we can modify it without //       mutating the actual value.