smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
smollergraph::Query Struct Reference

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.
 

Detailed Description

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.

Definition at line 71 of file parser.h.

Member Data Documentation

◆ distinct

bool smollergraph::Query::distinct = false

Definition at line 82 of file parser.h.

◆ explain

bool smollergraph::Query::explain = false

Definition at line 72 of file parser.h.

◆ nodes

std::vector<NodePattern> smollergraph::Query::nodes

Definition at line 78 of file parser.h.

◆ path

std::string smollergraph::Query::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.

Definition at line 76 of file parser.h.

◆ relationships

std::vector<RelationshipPattern> smollergraph::Query::relationships

Definition at line 79 of file parser.h.

◆ returns

std::vector<ReturnItem> smollergraph::Query::returns

What it returns, in order.

Definition at line 84 of file parser.h.

◆ shortest

bool smollergraph::Query::shortest = false

Definition at line 77 of file parser.h.

◆ where

std::vector<Comparison> smollergraph::Query::where

The comparisons in WHERE, joined by AND, so a row has to pass them all.

Definition at line 81 of file parser.h.


The documentation for this struct was generated from the following file: