Method __builtin.Sql.Connection()->ping()
- Method
ping
intping()- Description
Check whether the connection is alive.
- Returns
Returns one of the following:
0Everything ok.
1The connection reconnected automatically.
-1The server has gone away, and the connection is dead.
The default implementation performs a trivial select to check the connection.
- See also