Project

General

Profile

« Previous | Next » 

Revision 3516

sql_gen.py: Added has_srcs()

View differences:

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 has_srcs(col): return is_col(col) and col.srcs
347

  
346 348
def srcs_str(cols):
347 349
    cols = filter(is_col, cols)
348 350
    return ','.join(('+'.join((s.name for s in c.srcs)) for c in cols))

Also available in: Unified diff