Expand description
Cypher-inspired query language for SQLiteGraph.
Supports:
MATCH (n:Label)— node patternMATCH (a)-[:REL]->(b)— outgoing edge patternMATCH (a)<-[:REL]-(b)— incoming edge patternMATCH (a)-[:REL]-(b)— undirected edge patternMATCH (a)-[:X]->(b)-[:Y]->(c)— multi-hop chainMATCH (a)-[:X*1..3]->(b)— variable-depth traversalWHERE n.field = "value" AND m.field = "x"— multi-predicateWHERE n.field =~ "pattern"— regex matchWHERE n.field > 5— numeric comparisonWHERE n.f = "x" OR n.f = "y"— disjunctionRETURN a.name, b.name— projectionLIMIT N— result cap (applied after filtering)CREATE (n:Label {prop: "val"})— insert a nodeCREATE (1)-[:REL]->(2)— insert an edge between node IDsMATCH (n) WHERE ... SET n.prop = "val"— update a propertyMATCH (n) WHERE ... DELETE n— remove a node
Structs§
- Cypher
Query - A parsed Cypher-inspired query.
- EdgeLeg
- One step in a multi-hop pattern:
(from)-[:rel]->(to). - Node
Pattern - A node pattern within a MATCH clause.
- Where
Clause - A single WHERE clause predicate.
Enums§
- Edge
Direction - Direction of an edge in a MATCH pattern.
- Pattern
- A graph pattern — node scan, edge traversal, multi-hop chain, or variable-depth traversal.
- Statement
- Top-level statement kind.
Matchis the default for read queries. - WhereOp
- Comparison operator used inside a
WHEREclause.
Functions§
- execute
- Execute a parsed
CypherQueryagainst a SQLite-backed graph. - parse
- Parse a Cypher-inspired query string.