Pike v8.0 release 1738

Method Sql.pgsql()->is_open()


Method is_open

final 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() instead.

See also

ping()