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

Class RawSQL

tortoise/expressions.py:244–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244class RawSQL(Term):
245 def __init__(self, sql: str) -> None:
246 super().__init__()
247 self.sql = sql
248
249 def get_sql(self, ctx: SqlContext) -> str:
250 if ctx.with_alias:
251 return format_alias_sql(sql=self.sql, alias=self.alias, ctx=ctx)
252 return self.sql
253
254
255class Q:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…