MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _setup_crud_hints

Method _setup_crud_hints

lib/sqlalchemy/sql/compiler.py:5638–5648  ·  view source on GitHub ↗
(self, stmt, table_text)

Source from the content-addressed store, hash-verified

5636 )
5637
5638 def _setup_crud_hints(self, stmt, table_text):
5639 dialect_hints = {
5640 table: hint_text
5641 for (table, dialect), hint_text in stmt._hints.items()
5642 if dialect in ("*", self.dialect.name)
5643 }
5644 if stmt.table in dialect_hints:
5645 table_text = self.format_from_hint_text(
5646 table_text, stmt.table, dialect_hints[stmt.table], True
5647 )
5648 return dialect_hints, table_text
5649
5650 # within the realm of "insertmanyvalues sentinel columns",
5651 # these lookups match different kinds of Column() configurations

Callers 3

visit_insertMethod · 0.95
visit_updateMethod · 0.95
visit_deleteMethod · 0.95

Calls 2

format_from_hint_textMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected