Return the numeric extreme when a group contains any number, fall back to alphabetic string comparison when it does not, and keep nil when neither type is present.
Co-authored-by: Cursor Agent <[email protected]>
* Support single-quoted string literals in query parsing
Add single-quoted string literal support to the NoSQL query parser,
matching Cosmos DB behavior where apostrophes are escaped by doubling
them (''). Includes parser unit tests and an API integration test.
Co-authored-by: Pijus Kamandulis <[email protected]>
* Use backslash escape for apostrophes in single-quoted strings
Cosmos DB escapes apostrophes with \' rather than SQL-style doubling.
Also fix EscapeCharacter to return proper values for \', \", and \\
which were previously producing empty substitutions.
Co-authored-by: Pijus Kamandulis <[email protected]>
---------
Co-authored-by: Cursor Agent <[email protected]>
* Fix ARRAY_CONTAINS panic when partial match arg is omitted
The NoSQL parser always emits a third (nil) argument for the optional
partial-match flag of ARRAY_CONTAINS. The executor checked only
len(arguments) > 2 before type-asserting arguments[2] to
parsers.SelectItem, which panicked on the nil value whenever the query
omitted the partial-match argument (e.g. ARRAY_CONTAINS(c.arr, 2)).
Guard the type assertion with a nil check and add an API test covering
ARRAY_CONTAINS with and without the optional partial-match argument.
Co-authored-by: Pijus Kamandulis <[email protected]>
* Remove comments from ARRAY_CONTAINS API test
Co-authored-by: Pijus Kamandulis <[email protected]>
---------
Co-authored-by: Cursor Agent <[email protected]>
* docs(readme): fix docker example to create valid save.json if missing
Prevent runtime errors by initializing save.json with '{}' if the file does not exist before running the container.
Fixes#11
* Update README.md
---------
Co-authored-by: Pijus Kamandulis <[email protected]>