PerfectlySoft / Perfect-MySQL

A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers.
https://www.perfect.org
Apache License 2.0
128 stars 61 forks source link

Adding ping() #21

Closed RockfordWei closed 6 years ago

RockfordWei commented 6 years ago

MySQL connection will go away when idle timeout. The ping() function can confirm the connectivity and also reconnect if need. https://dev.mysql.com/doc/refman/5.7/en/mysql-ping.html Thanks @JoeCharlier.