Project

General

Profile

« Previous | Next » 

Revision 2256

sql_gen.py: Added CustomCode

View differences:

sql_gen.py
11 11
    
12 12
    def __str__(self): return str(self.__dict__)
13 13

  
14
class CustomCode:
15
    def __init__(self, str_): self.str_ = str_
16
    
17
    def to_str(self, db): return self.str_
18

  
14 19
class Literal(Code):
15 20
    def __init__(self, value): self.value = value
16 21
    

Also available in: Unified diff