MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / _join_table

Method _join_table

tortoise/queryset.py:170–175  ·  view source on GitHub ↗
(self, table_criterio_tuple: TableCriterionTuple)

Source from the content-addressed store, hash-verified

168 return joins[-1][0]
169
170 def _join_table(self, table_criterio_tuple: TableCriterionTuple) -> None:
171 if table_criterio_tuple[0] not in self._joined_tables:
172 self.query = self.query.join(table_criterio_tuple[0], how=JoinType.left_outer).on(
173 table_criterio_tuple[1]
174 )
175 self._joined_tables.append(table_criterio_tuple[0])
176
177 @staticmethod
178 def _resolve_ordering_string(ordering: str, reverse: bool = False) -> tuple[str, Order]:

Callers 2

_join_table_by_fieldMethod · 0.95
_resolve_annotateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected