MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _with_hint

Method _with_hint

lib/sqlalchemy/sql/selectable.py:602–619  ·  view source on GitHub ↗
(
        self,
        selectable: Optional[_FromClauseArgument],
        text: str,
        dialect_name: str,
    )

Source from the content-addressed store, hash-verified

600 return self._with_hint(selectable, text, dialect_name)
601
602 def _with_hint(
603 self,
604 selectable: Optional[_FromClauseArgument],
605 text: str,
606 dialect_name: str,
607 ) -> Self:
608 if selectable is None:
609 self._statement_hints += ((dialect_name, text),)
610 else:
611 self._hints = self._hints.union(
612 {
613 (
614 coercions.expect(roles.FromClauseRole, selectable),
615 dialect_name,
616 ): text
617 }
618 )
619 return self
620
621
622class FromClause(

Callers 2

with_statement_hintMethod · 0.95
with_hintMethod · 0.95

Calls 1

unionMethod · 0.45

Tested by

no test coverage detected