session and insert query builder progress
This commit is contained in:
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user