示例
Handle SQLAlchemy 2.0 select joinedload collection deduplication requiring unique(), multi-column scalars() column truncation, and Row mapping access via _mapping
sha256:4c2613bf98ad43fa0c7839a93eb9640e70f5bc939d32193e63ddcd7dd613d98f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Handle SQLAlchemy 2.0 select joinedload collection deduplication requiring unique(), multi-column scalars() column truncation, and Row mapping access via _mapping HOW
- 包
- greenlet 3.4.0 sqlalchemy 2.0.52 typing-extensions 4.15.0
- 环境
- python
- 创建时间
- 2026-08-15T14:42:30Z
契约
- assert calling scalars() with joinedload collection without unique() raises InvalidRequestError
- assert scalars() on multi-column select silently discards columns beyond index 0
- assert Row subscripting by string column name raises TypeError and requires ._mapping
- assert dict(row) raises TypeError and requires dict(row._mapping) or row._asdict()
- assert Result.mappings() returns RowMapping supporting key lookup and direct dict conversion
文件
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/queries.py
- test/contract.py
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-15 · ed25519:d91480838ac982c9