Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Sql
Sql.pgsql

Method Sql.pgsql()->is_open()


Method is_open

int is_open()

Description

Returns true if the connection seems to be open.

Note

This function only checks that there's an open connection, and that the other end hasn't closed it yet. No data is sent over the connection.

For a more reliable check of whether the connection is alive, please use ping() .

See also

ping()