metarhia / metarhia/sql

Alternative syntax for `.where()`

Open
#14 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```js
where({
field1: 'value', // equal
field2: [-100, 100], // between
field3: [100, ], // greater then
field4: [, 100], // less then
field5: ['>', 100], // greater then
field6: ['<', 100], // less then
field7: ['<>', value], // not equeal
field8: ['>=', value], // greater then or eaual to
field9: ['<=', value], // less then or equal to
field10: new Set([1, 2, 3]), // in set
})
```
@lundibundi @belochub

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue proposes alternative object and array syntax for `.where()`, including ranges, comparison operators, and sets. Start by locating the `.where()` implementation and its tests in the repository, then determine the expected behavior for each example. Done means the syntax is specified, implemented, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.