Project

General

Profile

« Previous | Next » 

Revision 2993

sql_gen.py: Added suffixed_col()

View differences:

sql_gen.py
258 258
        assert table == None or table == check_table
259 259
    return Col(col.name)
260 260

  
261
def suffixed_col(col, suffix):
262
    return Col(concat(col.name, suffix), col.table, col.srcs)
263

  
261 264
class NamedCol(Col):
262 265
    def __init__(self, name, code):
263 266
        Col.__init__(self, name)

Also available in: Unified diff