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

7 lines
113 B
Go

c, err := db.Conn(ctx)
if err != nil {
log.Fatal(err)
}
_ := c.PingContext(ctx)
_, _ := c.QueryContext(...)