MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / HSTORETest

Class HSTORETest

test/typing/plain_files/dialects/postgresql/pg_stuff.py:231–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 """Test HSTORE type in ORM mapped columns."""
230
231 class HSTORETest(Base):
232 __tablename__ = "test_hstore"
233 id = mapped_column(Integer, primary_key=True)
234 hstore_data: Mapped[dict[str, str | None]] = mapped_column(HSTORE)
235
236 hstore_obj = HSTORETest()
237 assert_type(hstore_obj.hstore_data, dict[str, str | None])

Callers 1

test_hstore_orm_mappingFunction · 0.85

Calls 1

mapped_columnFunction · 0.90

Tested by 1

test_hstore_orm_mappingFunction · 0.68