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

Advanced query index #480

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MichaelPetrinolis
Copy link

Can select from the Index and supports All/Any

closes #479

@sebastienros
Copy link
Owner

Test failing on npgsql

@MichaelPetrinolis MichaelPetrinolis marked this pull request as draft November 24, 2024 19:37
Updated ISqlBuilder and SqlBuilder Join methods to include a new
onTableIsAlias parameter. Modified InnerJoin, LeftJoin, and RightJoin
extension methods to pass this parameter. Adjusted DefaultQuery
InnerJoin call to set onTableIsAlias to true for _documentTable.
Added a new test ShouldReturnFirstOrDefaultJoinedIndexes in CoreTests
and made minor formatting changes.
@sebastienros sebastienros marked this pull request as ready for review November 24, 2024 20:02
{
// Don't prefix if alias is used
if (alias != onTable)
if (alias != onTable && !onTableIsAlias)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing this, I believe we don't need a new field and just to set the alias argument instead such that it knows that onTable is an alias.

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.

Select Index instead of document with All/Any support
2 participants