smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
plan.cc File Reference
#include "smollergraph/plan.h"
#include <algorithm>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <variant>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"

Go to the source code of this file.

Namespaces

namespace  smollergraph
 

Functions

std::string smollergraph::ValueText (const Value &value)
 A value as sg query prints it: a number in digits, and a string as it is.
 
absl::StatusOr< Plan > smollergraph::PlanQuery (const Query &query)
 Plans a query, starting from the node of its pattern that's cheapest to find, or for a shortest path, finding both its nodes, and then the path.
 
Result smollergraph::Run (const Plan &plan, const Graph &graph)
 Runs a plan on a graph, a step at a time, each on all of the rows at once.
 
absl::StatusOr< Result > smollergraph::Execute (const Graph &graph, std::string_view text)
 Parses, plans and runs a query in our subset of Cypher on a graph, in one call, as Kùzu's connection does with execute.
 
std::string smollergraph::Explain (const Plan &plan)
 The plan's steps, a line each, in the order they run, as EXPLAIN shows them.
 

Variable Documentation

◆ nodes

std::vector<NodeId> nodes

Definition at line 114 of file plan.cc.

◆ path

Path path

Definition at line 115 of file plan.cc.