mirror of
https://github.com/dnote/dnote
synced 2026-03-15 06:55:49 +01:00
Allow empty param in the connection string (#227)
This commit is contained in:
parent
ee14a3c9be
commit
a5bcf771d7
1 changed files with 2 additions and 2 deletions
|
|
@ -42,13 +42,13 @@ func getPGConnectionString() string {
|
|||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"host=%s port=%s dbname=%s user=%s password=%s sslmode=%s",
|
||||
"sslmode=%s host=%s port=%s dbname=%s user=%s password=%s",
|
||||
sslmode,
|
||||
os.Getenv("DBHost"),
|
||||
os.Getenv("DBPort"),
|
||||
os.Getenv("DBName"),
|
||||
os.Getenv("DBUser"),
|
||||
os.Getenv("DBPassword"),
|
||||
sslmode,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue