mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
add database name envvar to GetDbUrl
This commit is contained in:
5
main.go
5
main.go
@@ -22,10 +22,7 @@ func main() {
|
||||
check("ensuring muzi DB exists", db.CreateDB())
|
||||
|
||||
var err error
|
||||
db.Pool, err = pgxpool.New(
|
||||
context.Background(),
|
||||
fmt.Sprintf(db.GetDbUrl(), "/muzi"),
|
||||
)
|
||||
db.Pool, err = pgxpool.New(context.Background(), db.GetDbUrl(false))
|
||||
check("connecting to muzi database", err)
|
||||
defer db.Pool.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user