We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0958a54 commit bbdbb95Copy full SHA for bbdbb95
db.go
@@ -10,9 +10,9 @@ const (
10
DB_USER = "user"
11
DB_PASSWORD = "password"
12
DB_NAME = "dbname"
13
- DB_HOST = "dbname"
+ DB_HOST = "127.0.0.1"
14
DB_PORT = "5432"
15
- DB_SSLMODE = "disabled"
+ DB_SSLMODE = "disable"
16
)
17
18
func GetDbConnection() (*sql.DB, error) {
testapp/config.toml
@@ -0,0 +1,7 @@
1
+[database]
2
+user = "user"
3
+password = "password"
4
+database = "dbname"
5
+host = "127.0.0.1"
6
+port = "5434"
7
+sslmode = "disable"
0 commit comments