MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_tstring

Method visit_tstring

lib/sqlalchemy/sql/compiler.py:2792–2807  ·  view source on GitHub ↗
(self, tstring, add_to_result_map=None, **kw)

Source from the content-addressed store, hash-verified

2790 )
2791
2792 def visit_tstring(self, tstring, add_to_result_map=None, **kw):
2793 if self._collect_params:
2794 self._add_to_params(tstring)
2795
2796 if not self.stack:
2797 self.isplaintext = True
2798
2799 if add_to_result_map:
2800 # tstring() object is present in the columns clause of a
2801 # select(). Add a no-name entry to the result map so that
2802 # row[tstring()] produces a result
2803 add_to_result_map(None, None, (tstring,), sqltypes.NULLTYPE)
2804
2805 # Process each part and concatenate
2806 kw["within_tstring"] = True
2807 return "".join(self.process(part, **kw) for part in tstring.parts)
2808
2809 def visit_textual_select(
2810 self, taf, compound_index=None, asfrom=False, **kw

Callers

nothing calls this directly

Calls 3

_add_to_paramsMethod · 0.95
joinMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected