code: func postgresConnStr(cfg migrateConfig) string {
  	connStrs := []string{
  		fmt.Sprintf("user=%s", cfg.User),
  	}
  
  	if len(cfg.Pass) > 0 {
  		connStrs = append(connStrs, fmt.Sprintf("password=%s", cfg.Pass))
  	}
  
  	connStrs = append(connStrs, []string{
  		fmt.Sprintf("host=%s", cfg.Host),
  		fmt.Sprintf("port=%d", cfg.Port),
  		fmt.Sprintf("dbname=%s", cfg.DBName),
  	}...)
  
  	if len(cfg.SSLMode) > 0 {
  		connStrs = append(connStrs, fmt.Sprintf("sslmode=%s", cfg.SSLMode))
  	}
  
  	return strings.Join(connStrs, " ")
  }
docs: // postgressConnStr returns a postgres connection string compatible with the
  // Go pq driver package, in the format:
  // user=bob password=secret host=1.2.3.4 port=5432 dbname=mydb sslmode=verify-full