diff --git a/src/database/single_node/graph_db_accessor.cpp b/src/database/single_node/graph_db_accessor.cpp index f298b176a..f12a15e17 100644 --- a/src/database/single_node/graph_db_accessor.cpp +++ b/src/database/single_node/graph_db_accessor.cpp @@ -6,6 +6,7 @@ #include #include "durability/single_node/state_delta.hpp" +#include "storage/common/constraints/exceptions.hpp" #include "storage/single_node/edge.hpp" #include "storage/single_node/edge_accessor.hpp" #include "storage/single_node/vertex.hpp" diff --git a/src/database/single_node/graph_db_accessor.hpp b/src/database/single_node/graph_db_accessor.hpp index 222b5d2b1..85f0ec5e4 100644 --- a/src/database/single_node/graph_db_accessor.hpp +++ b/src/database/single_node/graph_db_accessor.hpp @@ -13,7 +13,6 @@ #include "database/single_node/exceptions.hpp" #include "database/single_node/graph_db.hpp" -#include "storage/common/constraints/exceptions.hpp" #include "storage/common/types/types.hpp" #include "storage/single_node/edge_accessor.hpp" #include "storage/single_node/vertex_accessor.hpp" @@ -21,6 +20,10 @@ #include "transactions/type.hpp" #include "utils/bound.hpp" +namespace storage::constraints { +struct ConstraintEntry; +} // namespace storage::constraints + namespace database { /** * Base accessor for the database object: exposes functions for operating on the diff --git a/src/database/single_node_ha/graph_db_accessor.cpp b/src/database/single_node_ha/graph_db_accessor.cpp index 3c077f435..9cdbe57a6 100644 --- a/src/database/single_node_ha/graph_db_accessor.cpp +++ b/src/database/single_node_ha/graph_db_accessor.cpp @@ -6,6 +6,7 @@ #include #include "durability/single_node_ha/state_delta.hpp" +#include "storage/common/constraints/exceptions.hpp" #include "storage/single_node_ha/edge.hpp" #include "storage/single_node_ha/edge_accessor.hpp" #include "storage/single_node_ha/vertex.hpp" diff --git a/src/database/single_node_ha/graph_db_accessor.hpp b/src/database/single_node_ha/graph_db_accessor.hpp index 2d52e7023..81e505242 100644 --- a/src/database/single_node_ha/graph_db_accessor.hpp +++ b/src/database/single_node_ha/graph_db_accessor.hpp @@ -13,7 +13,6 @@ #include "database/single_node_ha/graph_db.hpp" #include "raft/raft_interface.hpp" -#include "storage/common/constraints/exceptions.hpp" #include "storage/common/types/types.hpp" #include "storage/single_node_ha/edge_accessor.hpp" #include "storage/single_node_ha/vertex_accessor.hpp" @@ -22,6 +21,10 @@ #include "utils/bound.hpp" #include "utils/exceptions.hpp" +namespace storage::constraints { +struct ConstraintEntry; +} // namespace storage::constraints + namespace database { /** Thrown when inserting in an index with constraint. */