MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / JSONBTest

Class JSONBTest

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

Source from the content-addressed store, hash-verified

197 """Test JSONB type in ORM mapped columns."""
198
199 class JSONBTest(Base):
200 __tablename__ = "test_jsonb"
201 id = mapped_column(Integer, primary_key=True)
202 jsonb_data: Mapped[Dict[str, Any]] = mapped_column(JSONB)
203
204 jsonb_obj = JSONBTest()
205 assert_type(jsonb_obj.jsonb_data, Dict[str, Any])

Callers 1

test_jsonb_orm_mappingFunction · 0.70

Calls 1

mapped_columnFunction · 0.90

Tested by 1

test_jsonb_orm_mappingFunction · 0.56