Return the number of tables in this query with a non-zero reference count. After execution, the reference counts are zeroed, so tables added in compiler will not be seen by this method.
(self)
| 1124 | return alias |
| 1125 | |
| 1126 | def count_active_tables(self): |
| 1127 | """ |
| 1128 | Return the number of tables in this query with a non-zero reference |
| 1129 | count. After execution, the reference counts are zeroed, so tables |
| 1130 | added in compiler will not be seen by this method. |
| 1131 | """ |
| 1132 | return len([1 for count in self.alias_refcount.values() if count]) |
| 1133 | |
| 1134 | def join(self, join, reuse=None): |
| 1135 | """ |