Contents
Database Connections
module: pyrseas.dbconn
The dbconn module defines DbConnection.
Database Connection
A DbConnection is a helper class representing a connection to a PostgreSQL database via the Psycopg adapter. A DbConnection is not necessarily connected. It will typically connect to the database when the ~pyrseas.dbobject.DbObjectDict ~pyrseas.dbobject.DbObjectDict.fetch method is first invoked. It is normally disconnected just before the ~pyrseas.database.Database ~pyrseas.database.Database.from_catalog returns.
autoclass: DbConnection
automethod: DbConnection.connect
automethod: DbConnection.fetchone
automethod: DbConnection.fetchall
autoattribute: DbConnection.version