#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "absl/status/statusor.h"
#include "smollergraph/graph.h"
#include "smollergraph/parser.h"
#include "smollergraph/query.h"
Go to the source code of this file.
|
| struct | smollergraph::Step |
| | One step of a plan. More...
|
| |
| struct | smollergraph::Column |
| | A column of what a plan returns: its heading, such as b.name, p or length(p), and the property of the node in a slot that it returns, or with no slot, the row's path, or a function of it, its length or its cost. More...
|
| |
| struct | smollergraph::Plan |
| | How to answer a query: where to start, and where to go from there. More...
|
| |
| struct | smollergraph::Cell |
| | A value a query returns, and the node it's a property of. More...
|
| |
| struct | smollergraph::Result |
| | What a query returns: a row for each match of its pattern, with a cell for each column. More...
|
| |
|
| 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.
|
| |
| std::string | smollergraph::Explain (const Plan &plan) |
| | The plan's steps, a line each, in the order they run, as EXPLAIN shows them.
|
| |
| std::string | smollergraph::ValueText (const Value &value) |
| | A value as sg query prints it: a number in digits, and a string as it is.
|
| |
| 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.
|
| |