Skip to content

Restructure Query internals#244

Merged
waynemwashuma merged 4 commits into
wimaengine:devfrom
waynemwashuma:query-refactor
Sep 9, 2025
Merged

Restructure Query internals#244
waynemwashuma merged 4 commits into
wimaengine:devfrom
waynemwashuma:query-refactor

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

Objective

Restructure the Query system by refining its API and strengthening integration with World, Archetypes, and Tables. This change provides clearer semantics and improved safety checks.
Added unit tests under to verify all core query operations, including:

  • Single/multi-component queries.
  • Iteration across entities.
  • Pairwise combinations.
  • Entity-specific lookups.
  • Entity counts.

Note

This introduces a performance regression as the queries no longer cache the table columns on creation.

Migration guide

Behavior of query methods remains consistent, but stricter checks are now enforced.

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@waynemwashuma waynemwashuma self-assigned this Sep 8, 2025
@waynemwashuma waynemwashuma merged commit 0a1a2e4 into wimaengine:dev Sep 9, 2025
5 checks passed
@waynemwashuma waynemwashuma deleted the query-refactor branch September 9, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant