Home | Trees | Index | Help |
|
---|
Package pydo :: Module dbtypes |
|
The dbtypes module contains generic type wrapper classes for values passed into PyDO, to provide type information useful into marshalling the data into SQL according to the intended datatype. Some mapping of datatype can be done solely on the basis of Python type, but at times it may be necessary to be more specific.
DBAPI-compliant drivers use wrapper classes for this purpose, but they are specific to the underlying driver; these wrappers can be used with all drivers.
If you insert or update a wrapped value into a PyDO instance, the value of the corresponding column in that instance will be the unwrapped value, not the wrapper itself.Classes | |
---|---|
BINARY |
|
DATE |
|
INTERVAL |
|
TIMESTAMP |
|
typewrapper |
Function Summary | |
---|---|
unwrap(val)
|
Variable Summary | |
---|---|
list |
date_formats = ['%m-%d-%Y', '%m-%d-%y', '%Y-%d-%m', '%y-...
|
list |
timestamp_formats = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%...
|
Variable Details |
---|
date_formats
|
timestamp_formats
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Mar 8 10:18:58 2006 | http://epydoc.sf.net |