relation completer progress

This commit is contained in:
2025-07-06 20:06:26 +02:00
parent 5c1e0ae0d8
commit c974628bee
11 changed files with 358 additions and 163 deletions
@@ -3,6 +3,7 @@
#include "matador/utils/enum_mapper.hpp"
#include <cstdint>
#include <memory>
namespace matador::object {
@@ -27,6 +28,7 @@ public:
[[nodiscard]] std::string field_name() const;
[[nodiscard]] relation_type type() const;
[[nodiscard]] std::string type_name() const;
[[nodiscard]] const schema_node& node() const;
[[nodiscard]] bool is_has_one() const;
@@ -37,6 +39,9 @@ public:
void link_foreign_endpoint(const std::shared_ptr<relation_endpoint>& endpoint);
private:
template<typename>
friend class relation_completer;
std::string field_name_;
relation_type type_;
std::shared_ptr<schema_node> node_;