shad-go/lectures/07-sql/conn/conn.go

8 lines
113 B
Go
Raw Normal View History

2020-04-08 19:20:23 +00:00
c, err := db.Conn(ctx)
if err != nil {
log.Fatal(err)
}
_ := c.PingContext(ctx)
_, _ := c.QueryContext(...)