We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PG connstring: host=/run/postgresql dbname=foo Working pg URL: postgres:///foo?host=/run/postgresql URL by Config.URL(): postgres://ptman:@/run/postgresql:5432/foo?
host=/run/postgresql dbname=foo
postgres:///foo?host=/run/postgresql
postgres://ptman:@/run/postgresql:5432/foo?
the Config is constructed from ConnConfig by https://pkg.go.dev/github.com/jackc/pgx/v5#ParseConfig
pgtestdb/testdb.go
Line 81 in 29c5e55
I was able to get it working with:
cfg := pgtestdb.Config{ //Host: conf.ParsedDB.ConnConfig.Host, //Port: strconv.Itoa(int(conf.ParsedDB.ConnConfig.Port)), DriverName: "pgx", Database: conf.ParsedDB.ConnConfig.Database, User: conf.ParsedDB.ConnConfig.User, Password: conf.ParsedDB.ConnConfig.Password, Options: "host=/run/postgresql", }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
PG connstring:
host=/run/postgresql dbname=foo
Working pg URL:
postgres:///foo?host=/run/postgresql
URL by Config.URL():
postgres://ptman:@/run/postgresql:5432/foo?
the Config is constructed from ConnConfig by https://pkg.go.dev/github.com/jackc/pgx/v5#ParseConfig
pgtestdb/testdb.go
Line 81 in 29c5e55
I was able to get it working with:
The text was updated successfully, but these errors were encountered: