Return a list of all table expressions that are declared by this query. This is abstract as the clauses that do this differ across query types. Since all supported queries may have a WITH clause, getting table expressions from the WITH clause is supported here.
(self)
| 62 | @property |
| 63 | @abstractmethod |
| 64 | def table_exprs(self): |
| 65 | """ |
| 66 | Return a list of all table expressions that are declared by this query. This is |
| 67 | abstract as the clauses that do this differ across query types. Since all supported |
| 68 | queries may have a WITH clause, getting table expressions from the WITH clause is |
| 69 | supported here. |
| 70 | """ |
| 71 | # This is an abstractproperty because it's only a *partial* implementation, however |
| 72 | # for any statement or query that has a WITH clause, we can handle that here. |
| 73 | table_exprs = TableExprList([]) |
| 74 | if self.with_clause: |
| 75 | table_exprs.extend(self.with_clause.table_exprs) |
| 76 | return table_exprs |
| 77 | |
| 78 | @property |
| 79 | @abstractmethod |
nothing calls this directly
no test coverage detected