insert_query_builder progress

This commit is contained in:
2026-02-18 15:32:27 +01:00
parent 0876535b44
commit e5072741f0
5 changed files with 142 additions and 119 deletions
+7 -2
View File
@@ -41,8 +41,8 @@ public:
void reset() { proxy_.reset(); }
operator bool() { return valid(); }
bool valid() { return proxy_ != nullptr; }
operator bool() const { return valid(); }
[[nodiscard]] bool valid() const { return proxy_ != nullptr; }
[[nodiscard]] bool has_primary_key() const { return proxy_->has_primary_key(); }
[[nodiscard]] const utils::identifier &primary_key() const { return proxy_->primary_key(); }
@@ -53,6 +53,11 @@ public:
[[nodiscard]] bool is_detached() const { return !proxy_->is_detached(); }
[[nodiscard]] bool is_removed() const { return !proxy_->is_removed(); }
void change_state(object_state s) {
if (proxy_) {
proxy_->change_state(s);
}
}
private:
std::shared_ptr<object_proxy<Type> > proxy_{};
};