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

Module pydo.drivers.psycopgconn

PyDO driver for PostgreSQL, using the psycopg driver.

Currently this has been tested with psycopg 1.1.18 and 1.99.1.12, and attempts to support both.
Classes
PsycopgConverter  
PsycopgDBI  

Function Summary
  convert_DATE(dt)
  convert_TIMESTAMP(ts)

Variable Summary
zipimporter __loader__ = <zipimporter object "/usr/lib/python2.4/sit...
list date_formats = ['%m-%d-%Y', '%m-%d-%y', '%Y-%d-%m', '%y-...
instancemethod debug = logging.Logger.debug
bool havemx = True
int psycopg_version = 2                                                                     
list timestamp_formats = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%...
dict _converters = {<type 'datetime.datetime'>: <function <la...

Variable Details

__loader__

Type:
zipimporter
Value:
<zipimporter object "/usr/lib/python2.4/site-packages/PyDO-2.0-py2.4.e\
gg/pydo/drivers/">                                                     

date_formats

Type:
list
Value:
['%m-%d-%Y',
 '%m-%d-%y',
 '%Y-%d-%m',
 '%y-%d-%m',
 '%B %d %Y',
 '%b %d %Y',
 '%d %B %Y',
 '%d %b %Y']                                                           

havemx

Type:
bool
Value:
True                                                                   

psycopg_version

Type:
int
Value:
2                                                                     

timestamp_formats

Type:
list
Value:
['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%y-%m-%d %H:%M:%S']           

_converters

Type:
dict
Value:
{<class 'pydo.dbtypes.DATE'>: <function convert_DATE at 0xb789d614>,
 <class 'pydo.dbtypes.TIMESTAMP'>: <function convert_TIMESTAMP at 0xb7\
8d16bc>,
 <class 'pydo.dbtypes.INTERVAL'>: <function <lambda> at 0xb7811a3c>,
 <class 'pydo.dbtypes.BINARY'>: <function <lambda> at 0xb7811a04>,
 <type 'datetime.date'>: <function <lambda> at 0xb78119cc>,
 <type 'datetime.datetime'>: <function <lambda> at 0xb7811994>,
 <type 'DateTime'>: <built-in function TimestampFromMx>,
...                                                                    

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