Skip to content

refactor(query): split lookup.rs and compiler.rs into modules#36

Merged
Wgoeh merged 2 commits intoAllDotPy:masterfrom
Einswilli:fields_lookups
Apr 7, 2026
Merged

refactor(query): split lookup.rs and compiler.rs into modules#36
Wgoeh merged 2 commits intoAllDotPy:masterfrom
Einswilli:fields_lookups

Conversation

@Einswilli
Copy link
Copy Markdown
Contributor

Split monolithic files into modular structure for better maintainability:

  • src/query/lookups/:

    • lookups.rs: Core types, registry, resolve() logic
    • common_lookups.rs: Comparison/string lookups (exact, gt, contains, etc.)
    • date_lookups.rs: Date/time transforms (year, month, day, hour, etc.)
    • json_lookups.rs: JSON transforms and lookups (key, has_key, etc.)
    • mod.rs: Re-exports
  • src/query/compiler/:

    • compiler.rs: Main SQL compiler implementation
    • helpers.rs: Internal helpers (quote_col, qualified_col, etc.)
    • mod.rs: Re-exports

All 241 tests pass. No functional changes.

Split monolithic files into modular structure for better maintainability:

- src/query/lookups/:
  - lookups.rs: Core types, registry, resolve() logic
  - common_lookups.rs: Comparison/string lookups (exact, gt, contains, etc.)
  - date_lookups.rs: Date/time transforms (year, month, day, hour, etc.)
  - json_lookups.rs: JSON transforms and lookups (key, has_key, etc.)
  - mod.rs: Re-exports

- src/query/compiler/:
  - compiler.rs: Main SQL compiler implementation
  - helpers.rs: Internal helpers (quote_col, qualified_col, etc.)
  - mod.rs: Re-exports

All 241 tests pass. No functional changes.
@Wgoeh Wgoeh merged commit 91c549b into AllDotPy:master Apr 7, 2026
3 of 4 checks passed
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.

2 participants