MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __str__

Method __str__

lib/sqlalchemy/orm/query.py:2939–2951  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2937 return result
2938
2939 def __str__(self) -> str:
2940 statement = self._statement_20()
2941
2942 try:
2943 bind = (
2944 self.session.get_bind(clause=statement)
2945 if self.session
2946 else None
2947 )
2948 except sa_exc.UnboundExecutionError:
2949 bind = None
2950
2951 return str(statement.compile(bind))
2952
2953 @property
2954 def column_descriptions(self) -> List[ORMColumnDescription]:

Callers

nothing calls this directly

Calls 3

_statement_20Method · 0.95
get_bindMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected