Package gavo :: Package base :: Module sqlsupport :: Class DebugConnection
[frames] | no frames]

Class DebugConnection

source code

                    object --+        
                             |        
psycopg2.extensions.connection --+    
                                 |    
                    GAVOConnection --+
                                     |
                                    DebugConnection

Instance Methods
 
cursor(self, *args, **kwargs)
new cursor
source code
 
commit(self)
Commit all changes to database.
source code
 
rollback(self)
Roll back all changes done to database.
source code
 
getPID(self) source code

Inherited from GAVOConnection: execute, getTimeout, query, queryToDicts, savepoint, setTimeout, timeoutSet

Inherited from psycopg2.extensions.connection: __enter__, __exit__, __init__, __new__, __repr__, __str__, cancel, close, fileno, get_backend_pid, get_parameter_status, get_transaction_status, isexecuting, lobject, poll, reset, set_client_encoding, set_isolation_level, set_session, tpc_begin, tpc_commit, tpc_prepare, tpc_recover, tpc_rollback, xid

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from psycopg2.extensions.connection: DataError, DatabaseError, Error, IntegrityError, InterfaceError, InternalError, NotSupportedError, OperationalError, ProgrammingError, Warning, async, autocommit, binary_types, closed, cursor_factory, dsn, encoding, isolation_level, notices, notifies, protocol_version, server_version, status, string_types

Inherited from object: __class__

Method Details

cursor(self, *args, **kwargs)

source code 

new cursor

Return a new cursor.

The ``cursor_factory`` argument can be used to create non-standard cursors by passing a class different from the default. Note that the new class *should* be a sub-class of `extensions.cursor`.

:rtype: `extensions.cursor`

Overrides: psycopg2.extensions.connection.cursor
(inherited documentation)

commit(self)

source code 

Commit all changes to database.

Overrides: psycopg2.extensions.connection.commit
(inherited documentation)

rollback(self)

source code 

Roll back all changes done to database.

Overrides: psycopg2.extensions.connection.rollback
(inherited documentation)