about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-21 12:48:27 +0200
committerEmile <hanemile@protonmail.com>2019-10-21 12:48:27 +0200
commit12ee88e433afda3baad4395879994a9eb07c82b9 (patch)
treea955e2bfc3890fac06c4ca31d310f41b1f2a153e
parent22d7d2b3101ce238b09e18f74e329d55382aa066 (diff)
correct database
-rw-r--r--src/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.go b/src/db.go
index 75cc93a..98a9305 100644
--- a/src/db.go
+++ b/src/db.go
@@ -10,7 +10,7 @@ import (
 
 // setup the Database
 func setupDatabase() (*sql.DB, error) {
-	connStr := "host=localhost port=5432 user=postgres dbname=postgres sslmode=disable"
+	connStr := "host=postgresql port=5432 user=postgres dbname=postgres sslmode=disable"
 
 	// open a connection to the database
 	db, err := sql.Open("postgres", connStr)