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

3 lines
70 B
Go

if err := db.Ping(ctx); err != nil {
// do something with error
}