// Desugar: query normalization that runs once on the parsed AST before// planning, shrinking the surface the planner and executor must handle// (port of desugar.rs). Lowers non-literal inline pattern property values:// a constant value ((t:Tag {name: 'Hot'}), {id: $p}) stays on the fast// props seek path, but an expression value ((t:Tag {name: tagVar}),// {since: a.created}) is rewritten to a WHERE var.key = value equality// conjunct on the (possibly synthesized) node/relationship variable, so// pattern matching never evaluates an expression inside a pattern.//// Runs at the top of planning, so every entry -- cached, prepared,// EXPLAIN, and a recursively planned CALL { ... } body -- is normalized// uniformly. Idempotent: a second pass finds the PropExprs already// drained.
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.