Build fix.
This commit is contained in:
parent
a85eafd58c
commit
f30662e0b8
1 changed files with 0 additions and 3 deletions
|
|
@ -32,9 +32,6 @@ type DBConnection struct {
|
||||||
func Generate(destDir string, dbConn DBConnection, genTemplate ...template.Template) (err error) {
|
func Generate(destDir string, dbConn DBConnection, genTemplate ...template.Template) (err error) {
|
||||||
defer utils.ErrorCatch(&err)
|
defer utils.ErrorCatch(&err)
|
||||||
|
|
||||||
if dbConfig.SchemaName == "" {
|
|
||||||
dbConfig.SchemaName = "public"
|
|
||||||
}
|
|
||||||
connectionString := fmt.Sprintf("postgresql://%s:%s@%s:%s/%s?sslmode=%s&search_path=%s",
|
connectionString := fmt.Sprintf("postgresql://%s:%s@%s:%s/%s?sslmode=%s&search_path=%s",
|
||||||
dbConn.User, url.QueryEscape(dbConn.Password), dbConn.Host, strconv.Itoa(dbConn.Port), dbConn.DBName, dbConn.SslMode, dbConn.SchemaName)
|
dbConn.User, url.QueryEscape(dbConn.Password), dbConn.Host, strconv.Itoa(dbConn.Port), dbConn.DBName, dbConn.SslMode, dbConn.SchemaName)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue