diff --git a/src/Dibi/Drivers/MySqliDriver.php b/src/Dibi/Drivers/MySqliDriver.php index 4d830ded..8640f02a 100644 --- a/src/Dibi/Drivers/MySqliDriver.php +++ b/src/Dibi/Drivers/MySqliDriver.php @@ -130,6 +130,15 @@ class MySqliDriver implements Dibi\Driver } + /** + * Pings a server connection, or tries to reconnect if the connection has gone down. + */ + public function ping(): bool + { + return $this->connection->ping(); + } + + /** * Executes the SQL query. * @throws Dibi\DriverException