shad-go/lectures/07-sql/open/pgx.go
2020-04-08 22:20:23 +03:00

7 lines
157 B
Go

import (
"context"
"github.com/jackc/pgx/v4"
)
conn, err := pgx.Connect(context.Background(), "postgres://pgx_md5:secret@localhost:5432/pgx_test")