fixed core- and orm-tests. postgres-tests needs some work
This commit is contained in:
@@ -5,28 +5,30 @@
|
||||
#include <algorithm>
|
||||
|
||||
namespace matador::object {
|
||||
// basic_object_info::basic_object_info(std::shared_ptr<repository_node> node,
|
||||
// utils::identifier &&pk,
|
||||
// const std::shared_ptr<attribute_definition> &pk_column,
|
||||
// const std::shared_ptr<object_definition> &definition)
|
||||
// : node_(std::move(node))
|
||||
// , definition_(definition)
|
||||
// , identifier_(std::move(pk))
|
||||
// , pk_column_(pk_column) {
|
||||
// }
|
||||
|
||||
basic_object_info::basic_object_info(std::shared_ptr<repository_node> node,
|
||||
const std::vector<attribute_definition> &attributes,
|
||||
utils::identifier &&pk,
|
||||
const std::shared_ptr<attribute_definition> &pk_column,
|
||||
const std::shared_ptr<object_definition> &definition)
|
||||
const std::shared_ptr<attribute_definition> &pk_as_fk_column)
|
||||
: node_(std::move(node))
|
||||
, definition_(definition)
|
||||
, attributes_(attributes)
|
||||
, identifier_(std::move(pk))
|
||||
, pk_column_(pk_column) {
|
||||
, pk_as_fk_column_(pk_as_fk_column) {
|
||||
}
|
||||
|
||||
basic_object_info::basic_object_info(std::shared_ptr<repository_node> node,
|
||||
utils::identifier &&pk,
|
||||
const std::shared_ptr<attribute_definition> &pk_column)
|
||||
const std::vector<attribute_definition> &attributes)
|
||||
: node_(std::move(node))
|
||||
, identifier_(std::move(pk))
|
||||
, pk_column_(pk_column) {
|
||||
}
|
||||
|
||||
basic_object_info::basic_object_info(std::shared_ptr<repository_node> node,
|
||||
const std::shared_ptr<object_definition> &definition)
|
||||
: node_(std::move(node))
|
||||
, definition_(definition) {}
|
||||
, attributes_(attributes) {}
|
||||
|
||||
std::type_index basic_object_info::type_index() const {
|
||||
return node_->type_index();
|
||||
@@ -36,12 +38,12 @@ std::string basic_object_info::name() const {
|
||||
return node_->name();
|
||||
}
|
||||
|
||||
std::shared_ptr<object_definition> basic_object_info::definition() const {
|
||||
return definition_;
|
||||
const std::vector<attribute_definition>& basic_object_info::attributes() const {
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
std::shared_ptr<attribute_definition> basic_object_info::reference_column() const {
|
||||
return pk_column_;
|
||||
return pk_as_fk_column_;
|
||||
}
|
||||
|
||||
bool basic_object_info::has_primary_key() const {
|
||||
|
||||
Reference in New Issue
Block a user