Revision 2366
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
114 | 114 |
|
115 | 115 |
##### Conditions |
116 | 116 |
|
117 |
class ValueCond: |
|
117 |
class ValueCond(objects.BasicObject):
|
|
118 | 118 |
def __init__(self, value): |
119 | 119 |
if not isinstance(value, Code): value = Literal(value) |
120 | 120 |
if isinstance(value, NamedCol): value = value.code |
... | ... | |
180 | 180 |
|
181 | 181 |
filter_out = object() # tells Join to filter out rows that match the join |
182 | 182 |
|
183 |
class Join(Code):
|
|
183 |
class Join(objects.BasicObject):
|
|
184 | 184 |
def __init__(self, table, mapping, type_=None): |
185 | 185 |
''' |
186 | 186 |
@param mapping dict(right_table_col=left_table_col, ...) |
Also available in: Unified diff
sql_gen.py: ValueCond and Join class hierarchies inherit from objects.BasicObject like Code does