removed name member from restriction and changed attribute member to a reference
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user