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

feat: add base class for extending the query builder #46397

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

icewind1991
Copy link
Member

The current approach of directly extending the QueryBuilder means that the database internals can't change the query builder used without breaking any "extended query builder".

This introduces a new base class to build extended query builders of that encapsulates the regular query builder instead. Allowing the database internals to return different query builder implementations without breaking things.

Extracted from, and needed for the sharding work.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jul 10, 2024
@icewind1991 icewind1991 added this to the Nextcloud 30 milestone Jul 10, 2024
@icewind1991 icewind1991 requested review from artonge, a team, yemkareems, sorbaugh and come-nc and removed request for a team July 10, 2024 11:10
@icewind1991 icewind1991 force-pushed the extended-query-builder-base branch 2 times, most recently from acb6c83 to 8b5d787 Compare July 10, 2024 11:27
@icewind1991 icewind1991 force-pushed the extended-query-builder-base branch 4 times, most recently from c78506c to 803502e Compare July 10, 2024 12:55
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 merged commit f94b0c3 into master Jul 15, 2024
166 checks passed
@icewind1991 icewind1991 deleted the extended-query-builder-base branch July 15, 2024 12:53
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants