mirror of
https://github.com/dg/dibi.git
synced 2025-02-21 09:23:57 +01:00
DibiPostgreDriver: added support for pg_ping [Closes #144]
This commit is contained in:
parent
34deb6c04f
commit
4f315a0d74
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user