Skip to content

Compound query conditions#43

Merged
danielrothmann merged 4 commits into
mainfrom
feature/query_compound_conditions
Feb 2, 2026
Merged

Compound query conditions#43
danielrothmann merged 4 commits into
mainfrom
feature/query_compound_conditions

Conversation

@danielrothmann
Copy link
Copy Markdown
Member

This PR adds support for compound conditions in query where clauses, allowing multiple conditions to be combined with and or or.

Previously, you could only filter on a single condition per where clause, requiring pipe chaining to combine filters. This made certain queries awkward or impossible - e.g. checking multiple values of an enum field (e.g., "show me invoices that are draft or sent").

The implementation extends the query data model with a CompoundFilterCondition that holds multiple conditions and a combinator. The grammar was updated to parse and/or between conditions, with validation that you can't mix them in the same clause (use separate where clauses for that).

Syntax:
where <condition> and <condition>
where <condition> or <condition>

Closes #40

@danielrothmann danielrothmann merged commit b194cc8 into main Feb 2, 2026
1 check passed
@danielrothmann danielrothmann deleted the feature/query_compound_conditions branch February 6, 2026 14:37
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.

Conditions for query where clauses

1 participant