Use ssl flag when generating connection string, remove hardcoded value

This commit is contained in:
Dan Sosedoff 2014-10-28 22:16:38 -05:00
parent addac1062d
commit ee4883b448

View File

@ -37,9 +37,10 @@ func getConnectionString() string {
}
return fmt.Sprintf(
"host=%s port=%d user=%s dbname=%s sslmode=disable",
"host=%s port=%d user=%s dbname=%s sslmode=%s",
options.Host, options.Port,
options.User, options.DbName,
options.Ssl,
)
}