Add database keepalive pings. (#14)
Some microservice infrastructure configurations (notably, our usage of istio on
kubernetes) will detect long-running idle connections and kill them. This
causes an issue with the connection pooling implemented by some sql.DB drivers
that will assume that once a connection is open it will remain open
indefinitely.
This commit adds the SendKeepalivePings func to our database package so that we
can periodically send lightweight database queries and prevent the connection
from getting killed.
(+semver: feature)
Signed-off-by: Jeff Cuevas-Koch <[email protected]>