Skip to content

Commit

Permalink
print sql conn
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 13, 2024
1 parent 74080a2 commit 345cf35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 345cf35

Please sign in to comment.