1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 22:26:43 +02:00

MySqliDriver: added support for ping (#372)

This commit is contained in:
Jakub Bouček
2020-10-08 14:27:31 +02:00
committed by David Grudl
parent f444b5d993
commit 3b057c2e35

View File

@@ -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