MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / update

Method update

lib/sqlalchemy/sql/selectable.py:3219–3232  ·  view source on GitHub ↗

Generate an :func:`_expression.update` construct against this :class:`_expression.TableClause`. E.g.:: table.update().where(table.c.id == 7).values(name="foo") See :func:`_expression.update` for argument and usage information.

(self)

Source from the content-addressed store, hash-verified

3217
3218 @util.preload_module("sqlalchemy.sql.dml")
3219 def update(self) -> Update:
3220 """Generate an :func:`_expression.update` construct against this
3221 :class:`_expression.TableClause`.
3222
3223 E.g.::
3224
3225 table.update().where(table.c.id == 7).values(name="foo")
3226
3227 See :func:`_expression.update` for argument and usage information.
3228
3229 """
3230 return util.preloaded.sql_dml.Update(
3231 self,
3232 )
3233
3234 @util.preload_module("sqlalchemy.sql.dml")
3235 def delete(self) -> Delete:

Callers 3

_normalize_fromsMethod · 0.45
_create_raw_selectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected