Revision 3514
Added by Aaron Marcuse-Kubitza over 12 years ago
sql_gen.py | ||
---|---|---|
343 | 343 |
def suffixed_col(col, suffix): |
344 | 344 |
return Col(concat(col.name, suffix), col.table, col.srcs) |
345 | 345 |
|
346 |
def srcs_str(cols): |
|
347 |
cols = filter(is_col, cols) |
|
348 |
return ','.join(('+'.join((s.name for s in c.srcs)) for c in cols)) |
|
349 |
|
|
346 | 350 |
class NamedCol(Col): |
347 | 351 |
def __init__(self, name, code): |
348 | 352 |
Col.__init__(self, name) |
Also available in: Unified diff
sql_gen.py: Added srcs_str()