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
+2 -1
View File
@@ -1,13 +1,14 @@
package pgx_test
import (
"context"
"fmt"
"github.com/jackc/pgx"
)
func Example_JSON() {
conn, err := pgx.Connect(*defaultConnConfig)
conn, err := pgx.ConnectConfig(context.Background(), defaultConnConfig)
if err != nil {
fmt.Printf("Unable to establish connection: %v", err)
return