pgcom.connector.Connector.open_connection

Connector.open_connection() Iterator[psycopg2.connect][source]

Generate a free connection from the pool.

If pre_ping is True, then the connection is tested whether its alive or not. If not, then reconnect.