MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Test

Class Test

test/typing/plain_files/dialects/mysql/mysql_stuff.py:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 """Test INSERT with ON DUPLICATE KEY UPDATE."""
24
25 class Test(Base):
26 __tablename__ = "test_table_json"
27 id = mapped_column(Integer, primary_key=True)
28 data: Mapped[str] = mapped_column()
29
30 insert(Test).on_duplicate_key_update(
31 {"id": 42, Test.data: 99}, [("foo", 44)], data=99, id="foo"

Callers

nothing calls this directly

Calls 1

mapped_columnFunction · 0.90

Tested by

no test coverage detected