rename db

This commit is contained in:
2025-11-18 23:57:27 +00:00
parent cd3e0492b7
commit 10b5dfabfd
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func connectToPostgreSQL() (*gorm.DB, error) {
dsn := "user=postgres password=password dbname=simplebackend host=localhost port=5432 sslmode=disable"
dsn := "user=postgres password=password dbname=db host=localhost port=5432 sslmode=disable"
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
if err != nil {
return nil, err