added date_type_t, time_type_t and timestamp, ensure allocated postgres resources are released, split repository into basic_repository and repository.
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
#include <algorithm>
|
||||
|
||||
namespace matador::object {
|
||||
basic_object_info::basic_object_info(std::shared_ptr<repository_node> node, std::shared_ptr<class object>&& obj)
|
||||
: object_(std::move(obj))
|
||||
, node_(std::move(node)) {}
|
||||
basic_object_info::basic_object_info(const repository_node& node, const std::shared_ptr<class object>& obj)
|
||||
: object_(obj)
|
||||
, node_(node) {}
|
||||
|
||||
std::type_index basic_object_info::type_index() const {
|
||||
return node_->type_index();
|
||||
return node_.type_index();
|
||||
}
|
||||
|
||||
std::string basic_object_info::name() const {
|
||||
return node_->name();
|
||||
return node_.name();
|
||||
}
|
||||
|
||||
std::shared_ptr<class object> basic_object_info::object() const {
|
||||
|
||||
Reference in New Issue
Block a user