mirror of
https://github.com/dg/dibi.git
synced 2025-08-10 08:04:32 +02:00
MySqliDriver: added support for ping (#372)
This commit is contained in:
committed by
David Grudl
parent
f444b5d993
commit
3b057c2e35
@@ -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.
|
* Executes the SQL query.
|
||||||
* @throws Dibi\DriverException
|
* @throws Dibi\DriverException
|
||||||
|
Reference in New Issue
Block a user