Skip to content

Add getWhere Gt operator#413

Merged
DZakh merged 2 commits into
mainfrom
dz/get-where-gt
Jan 16, 2025
Merged

Add getWhere Gt operator#413
DZakh merged 2 commits into
mainfrom
dz/get-where-gt

Conversation

@DZakh

@DZakh DZakh commented Jan 10, 2025

Copy link
Copy Markdown
Member

Resolves #379

@DZakh DZakh requested a review from JasoonS January 10, 2025 15:02
@DZakh DZakh requested a review from JonoPrest January 15, 2025 09:20
fieldName: string,
fieldValue: fieldValue,
fieldValueSchema: S.t<fieldValue>,
operator: TableIndices.Operator.t,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Doesn't the index contain the operator?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it does, I'll fix

Comment on lines +124 to +127
let queryType = switch operator {
| Eq => "whereEq"
| Gt => "whereGt"
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

string coersian could work fine here to remove an additional switch. Not a problem though

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Awesome! It's actually a lot more extensible than I remembered. We should be able to add the others without too much hassle.

@DZakh DZakh enabled auto-merge (squash) January 16, 2025 08:01
@DZakh DZakh merged commit 7f5d519 into main Jan 16, 2025
@DZakh DZakh deleted the dz/get-where-gt branch January 16, 2025 08:08
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.

Improvement Request: Add more options to whereOperations

2 participants