MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tortoise/queryset.py:96–104  ·  view source on GitHub ↗
(self, model: type[MODEL])

Source from the content-addressed store, hash-verified

94 )
95
96 def __init__(self, model: type[MODEL]) -> None:
97 self._joined_tables: list[Table] = []
98 self.model: type[MODEL] = model
99 self.query: QueryBuilder = QUERY
100 self._db: BaseDBAsyncClient = None # type: ignore
101 self._capabilities: Capabilities | None = None
102 self._annotations: dict[str, Expression | Term] = {}
103 self._custom_filters: dict[str, FilterInfoDict] = {}
104 self._q_objects: list[Q] = []
105
106 @property
107 def capabilities(self) -> Capabilities:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected