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

Method raw

tortoise/queryset.py:818–822  ·  view source on GitHub ↗

Return the QuerySet from raw SQL

(self, sql: str)

Source from the content-addressed store, hash-verified

816 return self._clone()
817
818 def raw(self, sql: str) -> RawSQLQuery:
819 """
820 Return the QuerySet from raw SQL
821 """
822 return RawSQLQuery(model=self.model, db=self._db, sql=sql)
823
824 def first(self) -> QuerySetSingle[MODEL | None]:
825 """

Callers

nothing calls this directly

Calls 1

RawSQLQueryClass · 0.85

Tested by

no test coverage detected