Revision 2256
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/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
sql_gen.py: Added CustomCode