MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / update_tables_clause

Method update_tables_clause

lib/sqlalchemy/sql/compiler.py:6507–6515  ·  view source on GitHub ↗

Provide a hook to override the initial table clause in an UPDATE statement. MySQL overrides this.

(self, update_stmt, from_table, extra_froms, **kw)

Source from the content-addressed store, hash-verified

6505 return text
6506
6507 def update_tables_clause(self, update_stmt, from_table, extra_froms, **kw):
6508 """Provide a hook to override the initial table clause
6509 in an UPDATE statement.
6510
6511 MySQL overrides this.
6512
6513 """
6514 kw["asfrom"] = True
6515 return from_table._compiler_dispatch(self, iscrud=True, **kw)
6516
6517 def update_from_clause(
6518 self, update_stmt, from_table, extra_froms, from_hints, **kw

Callers 1

visit_updateMethod · 0.95

Calls 1

_compiler_dispatchMethod · 0.45

Tested by

no test coverage detected