a representation of a PQL range.
PQLRanges have a value attribute that is non-None when there is only a
single value.
For ranges, there is start, stop and step, all of which may be
None.
The attributes contain whatever the parent's valParser (or stepParser)
functions return.
|
__init__(self,
value=None,
start=None,
stop=None,
step=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
getValuesAsSet(self)
returns a set containing all values matching the PQL condition if
they form a discrete set or raises a ValueError if not. |
source code
|
|
|
getSQL(self,
colName,
sqlPars,
cmpExpr=None)
returns an SQL boolean expression for representing this constraint. |
source code
|
|
|
getSQLForInterval(self,
lowerColName,
upperColName,
sqlPars)
returns an SQL boolean expression for representing this constraint
against an upper, lower interval in the DB table. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|