shad-go/lectures/07-sql/open/pgx.go

8 lines
157 B
Go
Raw Normal View History

2020-04-08 19:20:23 +00:00
import (
"context"
"github.com/jackc/pgx/v4"
)
conn, err := pgx.Connect(context.Background(), "postgres://pgx_md5:secret@localhost:5432/pgx_test")