MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _setup_select_hints

Method _setup_select_hints

lib/sqlalchemy/sql/compiler.py:5196–5206  ·  view source on GitHub ↗
(
        self, select: Select[Unpack[TupleAny]]
    )

Source from the content-addressed store, hash-verified

5194 return text
5195
5196 def _setup_select_hints(
5197 self, select: Select[Unpack[TupleAny]]
5198 ) -> Tuple[str, _FromHintsType]:
5199 byfrom = {
5200 from_: hinttext
5201 % {"name": from_._compiler_dispatch(self, ashint=True)}
5202 for (from_, dialect), hinttext in select._hints.items()
5203 if dialect in ("*", self.dialect.name)
5204 }
5205 hint_text = self.get_select_hint_text(byfrom)
5206 return hint_text, byfrom
5207
5208 def _setup_select_stack(
5209 self, select, compile_state, entry, asfrom, lateral, compound_index

Callers 1

visit_selectMethod · 0.95

Calls 3

get_select_hint_textMethod · 0.95
_compiler_dispatchMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected