Pike v8.1 release 6

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

See also

ping()