Add more database statistics
Add additional go database stats to hnysql
and hnysqlx
wrapppers. In go 1.11 and later, we additionally report db.conns_in_use
, db.conns_idle
, db.wait_count
, and db.wait_duration
. See https://golang.org/pkg/database/sql/#DB.Stats