Package pydo :: Package drivers :: Module psycopgconn :: Class PsycopgDBI
[show private | hide private]
[frames | no frames]

Class PsycopgDBI

object --+    
         |    
   DBIBase --+
             |
            PsycopgDBI


Method Summary
  __init__(self, connectArgs, pool, verbose, initFunc)
  describeTable(self, table, schema)
for the given table, returns a 2-tuple: a dict of Field objects keyed by name, and list of multi-column unique constraints (sets of Fields)).
  execute(self, sql, values, qualified)
Executes the statement with the values and does conversion of the return result as necessary.
  getConverter(self)
returns a converter instance.
  getSequence(self, name, field, table)
If db has sequences, this should return the next value of the sequence named 'name'
  listTables(self, schema)
lists the tables in the database schema
    Inherited from DBIBase
  _connect(self)
  _convertResultSet(description, resultset, qualified)
internal function that turns a result set into a list of dictionaries. (Static method)
  _initExceptions(self)
  commit(self)
commits a transaction
  cursor(self)
returns a database cursor for direct access to the db connection
  endConnection(self)
disassociate from the current connection, which may be deleted or returned to a pool.
  getAutoIncrement(self, name)
If db uses auto increment, should obtain the value of the auto-incremented field named 'name'
  orderByString(order, limit, offset)
(Static method)
  rollback(self)
rolls back a transaction
  swapConnection(self, connection)
switch the connection in use for the current thread with another one.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Property Summary
  autocommit
    Inherited from DBIBase
  conn: the underlying db connection

Class Variable Summary
    Inherited from DBIBase
bool auto_increment = False
bool has_sane_rowcount = True
str paramstyle = 'format'

Instance Method Details

describeTable(self, table, schema=None)

for the given table, returns a 2-tuple: a dict of Field objects keyed by name, and list of multi-column unique constraints (sets of Fields)). The Field instances should contain information about whether they are unique or sequenced.
Overrides:
pydo.dbi.DBIBase.describeTable (inherited documentation)

execute(self, sql, values=(), qualified=False)

Executes the statement with the values and does conversion of the return result as necessary. result is list of dictionaries, or number of rows affected
Overrides:
pydo.dbi.DBIBase.execute

getConverter(self)

returns a converter instance.
Overrides:
pydo.dbi.DBIBase.getConverter (inherited documentation)

getSequence(self, name, field, table)

If db has sequences, this should return the next value of the sequence named 'name'
Overrides:
pydo.dbi.DBIBase.getSequence (inherited documentation)

listTables(self, schema=None)

lists the tables in the database schema
Overrides:
pydo.dbi.DBIBase.listTables

Property Details

autocommit

Get Method:
fget(...)
Set Method:
fset(...)

Generated by Epydoc 2.0 on Thu Feb 15 13:21:44 2007 http://epydoc.sf.net