db-keep-alive
Executes a keep-alive query through a database connection object every n
seconds. Tested with mysql
module.
The default query is set to:
SELECT 1
Usage
// execute every 60 secondsvar pinger = ; // start the interval timeoutpingerstart; // stop the interval timeoutpinger; // change the underlying connection and startpingerstart;