|
smollerGraph 0.20.2
A small graph database, from scratch
|
A query in our subset of Cypher, such as MATCH (a {name: 'Red fox'})-[:EATS]->(b) WHERE b.weight_g < 1000 RETURN DISTINCT b.name with EXPLAIN in front of it to ask for its plan. More...
#include <parser.h>
Public Attributes | |
| bool | explain = false |
| std::string | path |
| The path's variable, for a pattern written as p = shortestPath(...), which asks for a shortest path between its two nodes, or as p = (...), for a cheapest path. | |
| bool | shortest = false |
| std::vector< NodePattern > | nodes |
| std::vector< RelationshipPattern > | relationships |
| std::vector< Comparison > | where |
| The comparisons in WHERE, joined by AND, so a row has to pass them all. | |
| bool | distinct = false |
| std::vector< ReturnItem > | returns |
| What it returns, in order. | |
A query in our subset of Cypher, such as MATCH (a {name: 'Red fox'})-[:EATS]->(b) WHERE b.weight_g < 1000 RETURN DISTINCT b.name with EXPLAIN in front of it to ask for its plan.
Relationship i joins node i to node i + 1.
| std::vector<NodePattern> smollergraph::Query::nodes |
| std::string smollergraph::Query::path |
| std::vector<RelationshipPattern> smollergraph::Query::relationships |
| std::vector<ReturnItem> smollergraph::Query::returns |
| std::vector<Comparison> smollergraph::Query::where |