1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-07 14:46:50 +02:00

DibiPostgreDriver: added support for pg_ping [Closes #144]

This commit is contained in:
Ing. Andrej Poliak
2014-08-13 10:03:27 +02:00
committed by David Grudl
parent 34deb6c04f
commit 4f315a0d74

View File

@@ -113,6 +113,16 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver, IDibiResultDr
}
/**
* Pings database.
* @return boolean
*/
public function ping()
{
return pg_ping($this->connection);
}
/**
* Executes the SQL query.
* @param string SQL statement.