Revision 2832
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
142 | 142 |
|
143 | 143 |
def to_Table(self): return self |
144 | 144 |
|
145 |
def is_underlying_table(table): return table.to_Table() is table |
|
146 |
|
|
145 | 147 |
def as_Table(table, schema=None): |
146 | 148 |
if table == None or isinstance(table, Code): return table |
147 | 149 |
else: return Table(table, schema) |
Also available in: Unified diff
sql_gen.py: Added is_underlying_table()