The connection class — Psycopg 2.9.3 documentation
www.psycopg.org › docs › connectionThe connection class¶ class connection¶ Handles the connection to a PostgreSQL database instance. It encapsulates a database session. Connections are created using the factory function connect(). Connections are thread safe and can be shared among many threads. See Thread and process safety for details. Connections can be used as context ...