Home | Trees | Index | Help |
|
---|
Package pydo :: Module operators :: Class BindingConverter |
|
object
--+
|
BindingConverter
MssqlConverter
,
MysqlConverter
,
PsycopgConverter
,
SqliteConverter
>>> op=EQ(FIELD('x'), 45, converter=BindingConverter('format')) >>> print op (x = %s) >>> c=BindingConverter('format') >>> op=AND(EQ(FIELD('x'), 400), NE(FIELD('y'), ('^', FIELD('z'), 2)), converter=c) >>> type(op.converter)==BindingConverter True >>> type(op[1].converter)==BindingConverter True >>> type(op[2].converter)==BindingConverter True >>> type(op[2][2].converter)==BindingConverter True >>> print op ((x = %s) AND (y != (z ^ %s))) >>> c.values [400, 2]
Method Summary | |
---|---|
__init__(self,
paramstyle)
| |
__call__(self,
val)
| |
convert(self,
val)
| |
reset(self)
| |
_genName(self)
| |
_genNumber(self)
| |
_get_paramstyle(self)
| |
_set_paramstyle(self,
paramstyle)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Property Summary | |
---|---|
paramstyle | |
values |
Class Variable Summary | |
---|---|
dict |
converters = {}
|
tuple |
supported_styles = ('format', 'pyformat', 'qmark', 'name...
|
Property Details |
---|
paramstyle
|
values
|
Class Variable Details |
---|
converters
|
supported_styles
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Mar 8 10:18:58 2006 | http://epydoc.sf.net |