removed name member from restriction and changed attribute member to a reference

This commit is contained in:
Sascha Kühl
2025-12-11 09:26:35 +01:00
parent f842efb611
commit 571cfd52ae
4 changed files with 25 additions and 50 deletions
+1 -10
View File
@@ -2,9 +2,7 @@
namespace matador::object {
object::object(std::string name)
: name_(std::move(name)) {
int i = 9;
}
: name_(std::move(name)) {}
const attribute& object::create_attribute(std::string name, const std::shared_ptr<object>& obj) {
attribute attr{std::move(name)};
@@ -30,13 +28,6 @@ const std::string& object::name() const {
void object::update_name(const std::string& name) {
name_ = name;
// for (auto& con : constraints_) {
// if (con.is_primary_key_constraint()) {
// con.name_ += name;
// } else if (con.is_foreign_key_constraint()) {
// con.name_ = "FK_" + name + "_" + con.column_name();
// }
// }
}
bool object::has_attributes() const {