Method __builtin.Sql.Connection()->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().
- Note
The default implementation just returns the value
1
.- See also