Revision 2835
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 |
|
145 |
def is_underlying_table(table): |
|
146 |
return isinstance(table, Table) and table.to_Table() is table |
|
146 | 147 |
|
147 | 148 |
def as_Table(table, schema=None): |
148 | 149 |
if table == None or isinstance(table, Code): return table |
Also available in: Unified diff
sql_gen.py: is_underlying_table(): Support non-Table inputs