2
0

Restructure connect process

- Moved lots of connection logic to pgconn from pgx
- Extracted pgpassfile package
This commit is contained in:
Jack Christensen
2018-12-30 16:53:57 -06:00
parent 9990e4894d
commit b3c8a73dc7
19 changed files with 1134 additions and 1576 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package pgx_test
import (
"context"
"io"
"testing"
@@ -10,7 +11,7 @@ import (
func TestLargeObjects(t *testing.T) {
t.Parallel()
conn, err := pgx.Connect(*defaultConnConfig)
conn, err := pgx.ConnectConfig(context.Background(), defaultConnConfig)
if err != nil {
t.Fatal(err)
}
@@ -123,7 +124,7 @@ func TestLargeObjects(t *testing.T) {
func TestLargeObjectsMultipleTransactions(t *testing.T) {
t.Parallel()
conn, err := pgx.Connect(*defaultConnConfig)
conn, err := pgx.ConnectConfig(context.Background(), defaultConnConfig)
if err != nil {
t.Fatal(err)
}