removed string from restriction
This commit is contained in:
@@ -43,28 +43,24 @@ private:
|
||||
std::shared_ptr<object> owner_;
|
||||
std::shared_ptr<object> reference_;
|
||||
utils::constraints options_{utils::constraints::None};
|
||||
std::string ref_table_name_{};
|
||||
std::string ref_column_name_{};
|
||||
};
|
||||
|
||||
class constraint_builder {
|
||||
public:
|
||||
constraint_builder& constraint(std::string name);
|
||||
constraint_builder& primary_key(std::string name);
|
||||
constraint_builder& foreign_key(std::string name);
|
||||
constraint_builder& references(std::string table, std::string column);
|
||||
|
||||
operator class restriction() const;
|
||||
|
||||
private:
|
||||
std::string constraint_name;
|
||||
utils::constraints options_{utils::constraints::None};
|
||||
std::string column_name;
|
||||
std::string ref_table_name;
|
||||
std::string ref_column_name;
|
||||
};
|
||||
|
||||
constraint_builder constraint(std::string name);
|
||||
// class constraint_builder {
|
||||
// public:
|
||||
// constraint_builder& constraint(std::string name);
|
||||
// constraint_builder& primary_key(std::string name);
|
||||
// constraint_builder& foreign_key(std::string name);
|
||||
// constraint_builder& references(std::string table, std::string column);
|
||||
//
|
||||
// operator class restriction() const;
|
||||
//
|
||||
// private:
|
||||
// std::string constraint_name;
|
||||
// utils::constraints options_{utils::constraints::None};
|
||||
// std::string column_name;
|
||||
// };
|
||||
//
|
||||
// constraint_builder constraint(std::string name);
|
||||
|
||||
}
|
||||
#endif //MATADOR_CONSTRAINT_HPP
|
||||
Reference in New Issue
Block a user