pgcom.connector.Connector.ping

static Connector.ping(conn: psycopg2.connect) bool[source]

Ping the connection for liveness.

Implements a ping (“SELECT 1”) on the connection. Return True if the connection is alive, otherwise False.

Parameters

conn – The connection object to ping.