From 345cf35b3b5133981c30f4b1184ccf8a9dd84b6d Mon Sep 17 00:00:00 2001 From: Christian Carlsson Date: Wed, 13 Nov 2024 17:23:21 +0000 Subject: [PATCH] print sql conn --- go/pkg/db/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/pkg/db/db.go b/go/pkg/db/db.go index acb2d347..93f094ec 100644 --- a/go/pkg/db/db.go +++ b/go/pkg/db/db.go @@ -16,6 +16,7 @@ type Options struct { } func New(opts Options) (*sql.DB, error) { + println(fmt.Sprintf("postgresql://%s:%s@%s:%s/%s", opts.User, opts.Password, opts.Host, opts.Port, opts.Database)) return sql.Open("pgx", fmt.Sprintf("postgresql://%s:%s@%s:%s/%s", opts.User, opts.Password, opts.Host, opts.Port, opts.Database)) }