Project

General

Profile

« Previous | Next » 

Revision 2674

sql_gen.py: Added TypedCol

View differences:

sql_gen.py
408 408
##### Value exprs
409 409

  
410 410
row_count = CustomCode('count(*)')
411

  
412
##### Database structure
413

  
414
class TypedCol(Col):
415
    def __init__(self, name, type_):
416
        Col.__init__(self, name)
417
        
418
        self.type = type_
419
    
420
    def to_str(self, db): return Col.to_str(self, db)+' '+self.type
421
    
422
    def to_Col(self): return Col(self.name)

Also available in: Unified diff