session and insert query builder progress

This commit is contained in:
2026-04-16 16:53:06 +02:00
parent 0a0e3752ea
commit d734d647ed
7 changed files with 110 additions and 88 deletions
+4 -4
View File
@@ -42,16 +42,16 @@ public:
void reset() { proxy_.reset(); }
operator bool() const { return valid(); }
[[nodiscard]] bool valid() const { return proxy_ != nullptr; }
[[nodiscard]] bool valid() const { return proxy_ != nullptr && !proxy_->empty(); }
[[nodiscard]] bool has_primary_key() const { return proxy_->has_primary_key(); }
[[nodiscard]] const utils::identifier &primary_key() const { return proxy_->primary_key(); }
void primary_key(const utils::identifier &pk) { proxy_->primary_key(pk); }
[[nodiscard]] bool is_persistent() const { return proxy_->is_persistent(); }
[[nodiscard]] bool is_transient() const { return !proxy_->is_transient(); }
[[nodiscard]] bool is_detached() const { return !proxy_->is_detached(); }
[[nodiscard]] bool is_removed() const { return !proxy_->is_removed(); }
[[nodiscard]] bool is_transient() const { return proxy_->is_transient(); }
[[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_) {