added pk information to class object

This commit is contained in:
Sascha Kühl
2025-11-25 08:54:58 +01:00
parent ede5a8c636
commit ab7a2db869
6 changed files with 52 additions and 17 deletions
+12
View File
@@ -21,6 +21,18 @@ void object::add_constraint( class constraint c ) {
ref.owner_ = this;
}
const attribute* object::primary_key_attribute() const {
return pk_attribute_;
}
const utils::identifier& object::primary_key() const {
return pk_identifier_;
}
bool object::has_primary_key() const {
return pk_attribute_ != nullptr;
}
const std::string& object::name() const {
return name_;
}