Package psycopg2 :: Module extras :: Class DictConnection
[show private | hide private]
[frames | no frames]

Type DictConnection

object --+    
         |    
connection --+
             |
            DictConnection


A connection that uses DictCursor automatically.


Method Summary
  cursor(self)
    Inherited from connection
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __repr__(x)
Return repr(x)...
  __str__(x)
Return str(x)...
  close()
Close the connection.
  commit()
Commit all changes to database.
  rollback()
Roll back all changes done to database.
  set_client_encoding(encoding)
Set client encoding to encoding.
  set_isolation_level(level)
Switch isolation level to level.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from connection
  closed: True if the connection is closed.
  DatabaseError: Error related to the database engine.
  DataError: Error related to problems with the processed data.
  dsn: The current connection string.
  encoding: The current client encoding.
  Error: Base class for error exceptions.
  IntegrityError: Error related to database integrity.
  InterfaceError: Error related to the database interface.
  InternalError: The database encountered an internal error.
  isolation_level: The current isolation level.
  notices
  notifies
  NotSupportedError: A not supported datbase API was called.
  OperationalError: Error related to database operation (disconnect, memory allocation etc).
  ProgrammingError: Error related to database programming (SQL error, table not found etc).
  Warning: A database warning.

Method Details

cursor(self)

Overrides:
psycopg2._psycopg.connection.cursor