MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / upd

Method upd

test/sql/test_lambdas.py:1905–1909  ·  view source on GitHub ↗
(id_, newname)

Source from the content-addressed store, hash-verified

1903 users, addresses = user_address_fixture
1904
1905 def upd(id_, newname):
1906 stmt = lambda_stmt(lambda: users.update())
1907 stmt += lambda s: s.values(name=newname)
1908 stmt += lambda s: s.where(users.c.id == id_)
1909 return stmt
1910
1911 with testing.db.begin() as conn:
1912 conn.execute(users.insert().values(id=7, name="bar"))

Callers

nothing calls this directly

Calls 4

lambda_stmtFunction · 0.90
updateMethod · 0.45
valuesMethod · 0.45
whereMethod · 0.45

Tested by

no test coverage detected