schema node analyze progress
This commit is contained in:
@@ -5,18 +5,26 @@
|
||||
#include <algorithm>
|
||||
|
||||
namespace matador::object {
|
||||
basic_object_info::basic_object_info(const std::type_index type_index,
|
||||
object_definition &&definition,
|
||||
std::shared_ptr<attribute_definition> &&reference_column)
|
||||
: type_index_(type_index)
|
||||
basic_object_info::basic_object_info(std::shared_ptr<schema_node> node,
|
||||
const std::type_index type_index,
|
||||
utils::identifier &&pk,
|
||||
std::shared_ptr<attribute_definition> &&pk_column,
|
||||
object_definition &&definition)
|
||||
: node_(std::move(node))
|
||||
, type_index_(type_index)
|
||||
, definition_(std::move(definition))
|
||||
, reference_column_(std::move(reference_column)) {
|
||||
, identifier_(std::move(pk))
|
||||
, pk_column_(std::move(pk_column)) {
|
||||
}
|
||||
|
||||
basic_object_info::basic_object_info(const std::type_index type_index,
|
||||
std::shared_ptr<attribute_definition> &&reference_column)
|
||||
: type_index_(type_index)
|
||||
, reference_column_(std::move(reference_column)) {
|
||||
basic_object_info::basic_object_info(std::shared_ptr<schema_node> node,
|
||||
const std::type_index type_index,
|
||||
utils::identifier &&pk,
|
||||
std::shared_ptr<attribute_definition> &&pk_column)
|
||||
: node_(std::move(node))
|
||||
, type_index_(type_index)
|
||||
, identifier_(std::move(pk))
|
||||
, pk_column_(std::move(pk_column)) {
|
||||
}
|
||||
|
||||
std::type_index basic_object_info::type_index() const {
|
||||
@@ -32,7 +40,7 @@ const object_definition &basic_object_info::definition() const {
|
||||
}
|
||||
|
||||
std::shared_ptr<attribute_definition> basic_object_info::reference_column() const {
|
||||
return reference_column_;
|
||||
return pk_column_;
|
||||
}
|
||||
|
||||
} // namespace matador::object
|
||||
|
||||
Reference in New Issue
Block a user