Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/55 - Make Query Class Extend-able #60

Closed
wants to merge 4 commits into from
Closed

Issue/55 - Make Query Class Extend-able #60

wants to merge 4 commits into from

Conversation

alexstandiford
Copy link
Collaborator

@alexstandiford alexstandiford commented Jul 3, 2020

This is totally not event close to being finished, but I wanted to submit some of my initial thoughts about how this could be put together. This is mostly intended to spark discussion and thoughts about how it can be handled moving forward.

Basically, to register a custom query processor, you would extend Query_Processor, and register that processor to the registry. This is currently done via a filter that runs each time the registry is constructed.

The query class would then loop through the registered items while parsing important parts of the query, such as select, where, join, group_by, etc.

In this PR I have set up a rough idea on what I think join and where could be.

This has not been tested in any fashion - just mostly focusing in on the "big conversations" about how the system could be structured.

Issue #55

This provides a way to register new query processors, and provides a single place to provide context from the current query.
This provides a set of methods for each query processor to run that manipulate the query that is running.
This was intended to run these classes as single instances for the life of the query. This corrects that.
@alexstandiford alexstandiford linked an issue Jul 3, 2020 that may be closed by this pull request
@alexstandiford alexstandiford marked this pull request as draft July 3, 2020 14:20
@alexstandiford alexstandiford deleted the branch berlindb:release/2.0.0 July 12, 2021 14:55
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.

Make Query Class Extend-able
1 participant