Skip to content

Refactor shared ORM relationship loader helpers - #322

Open
theman6660 wants to merge 1 commit into
KLR-Pattern:masterfrom
theman6660:refactor/shared-orm-loader-helpers
Open

theman6660 wants to merge 1 commit into
KLR-Pattern:masterfrom
theman6660:refactor/shared-orm-loader-helpers

Conversation

@theman6660

Copy link
Copy Markdown
Contributor

Fixes #267.

Extract six shared ORM relationship-loader helpers into integration/common.py, keeping adapter-specific filtering and query construction in SQLAlchemy, Django, and Tortoise. Preserve the generated loaders' existing module, class name, and qualified name; extend each adapter's identity tests.

Validation: 83 integration tests passed on Python 3.12.14. The full tests/ run had 897 passed, 1 skipped, and the existing test_mem_leak_2 failure (psutil.NoSuchProcess), also reproduced on unchanged upstream. Changed-file Ruff checks and git diff --check passed.

Prepared with OpenAI Codex assistance.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

提取 ORM loader 公共代码到公共模块,消除三框架间的重复

1 participant