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

Method get_sql

tortoise/expressions.py:249–252  ·  view source on GitHub ↗
(self, ctx: SqlContext)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected