Add Path and Graph dummy msgs
This commit is contained in:
parent
27d99b620d
commit
88724f18fa
@ -1,21 +1,21 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.3.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.10.0
|
rev: 23.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.10.1
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
args: ["--profile", "black"]
|
args: ["--profile", "black"]
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v13.0.0
|
rev: v15.0.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
|
@ -79,6 +79,18 @@ struct Vertex {
|
|||||||
friend bool operator==(const Vertex &lhs, const Vertex &rhs) { return lhs.id == rhs.id; }
|
friend bool operator==(const Vertex &lhs, const Vertex &rhs) { return lhs.id == rhs.id; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Path {
|
||||||
|
// TODO(gitbuda): Define how a path should look like.
|
||||||
|
};
|
||||||
|
struct Graph {
|
||||||
|
std::vector<Vertex> vertices;
|
||||||
|
std::vector<Edge> edges;
|
||||||
|
friend bool operator==(const Graph &lhs, const Graph &rhs) {
|
||||||
|
LOG_FATAL("Implement memgraph::msgs::Graph::operator==");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// TODO(gitbuda): Figure out how to serialize memgraph::msgs::Graph/Path.
|
||||||
|
|
||||||
struct Null {};
|
struct Null {};
|
||||||
|
|
||||||
struct Value {
|
struct Value {
|
||||||
@ -582,7 +594,6 @@ using WriteResponses = std::variant<CreateVerticesResponse, DeleteVerticesRespon
|
|||||||
} // namespace memgraph::msgs
|
} // namespace memgraph::msgs
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct hash<memgraph::msgs::Value>;
|
struct hash<memgraph::msgs::Value>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user