smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1#ifndef SMOLLERGRAPH_EXPORT_H_
2#define SMOLLERGRAPH_EXPORT_H_
3
4#include <string>
5
6#include "absl/status/status.h"
8
9namespace smollergraph {
10
11// Writes the graph into the folder at `path`, for programs outside the
12// database to read, such as a script that trains a model: nodes.jsonl, a line
13// of JSON for each node, with its id, name, label and properties, and
14// relationships.csv, a line for each relationship, with the ids of the nodes
15// it joins and its type.
16absl::Status Export(const Graph& graph, const std::string& path);
17
18} // namespace smollergraph
19
20#endif // SMOLLERGRAPH_EXPORT_H_
absl::Status Export(const Graph &graph, const std::string &path)
Writes the graph into the folder at path, for programs outside the database to read,...
Definition export.cc:15
Path path
Definition plan.cc:115