@nx-db/parser
v0.3.0
Published
NxQL parser for NxDB
Downloads
29
Maintainers
Readme
NxQL
Peggy
For creating the parser, I am using peggy, which is a grammar for parser, which is parsed and peggy created an imperative parser in JS.
Here is an online playground to play with the grammar: https://peggyjs.org/online.html
Todo
MVP Support:
- Multi Field Selection (
SELECT name, root, type FROM projects) - Comments (
-- this is a comment) - No Condition (
SELECT * FROM projects) - InExpression (
SELECT * FROM projects WHERE 'type:library' IN tags) - AND
- OR
V1:
- LET statements
- graph utility functions (
shortestPath(from, to), len(), ...) - AND (NOT) EXISTS
- OR (NOT) EXISTS
- SELECT 1 FROM unnest(paths) AS path
