Skip to content

Commit

Permalink
1. fixed postgresql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
iasergunin committed Dec 15, 2023
1 parent 8b57256 commit dd0da2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pgxv4/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Example() {
ctx := context.Background()

uri := fmt.Sprintf("postgres://%s:%s@%s:%d/%s",
"user", "pass", "localhost", 5432, "drivers",
"user", "pass", "localhost", 5432, "db",
)

pool, err := pgxpool.Connect(ctx, uri)
Expand Down
2 changes: 1 addition & 1 deletion drivers/pgxv5/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Example() {
ctx := context.Background()

uri := fmt.Sprintf("postgres://%s:%s@%s:%d/%s",
"user", "pass", "localhost", 5432, "drivers",
"user", "pass", "localhost", 5432, "db",
)

pool, err := pgxpool.New(ctx, uri)
Expand Down

0 comments on commit dd0da2c

Please sign in to comment.