added type setter to column

This commit is contained in:
Sascha Kuehl 2023-11-22 22:59:40 +01:00
parent 44adc81ce1
commit 376beded43
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public:
[[nodiscard]] const std::string& ref_table() const; [[nodiscard]] const std::string& ref_table() const;
[[nodiscard]] const std::string& ref_column() const; [[nodiscard]] const std::string& ref_column() const;
void type(data_type_t type);
void alias(const std::string &as); void alias(const std::string &as);
template< typename Type > template< typename Type >

View File

@ -68,6 +68,11 @@ const std::string &column::ref_column() const
return ref_column_; return ref_column_;
} }
void column::type(data_type_t type)
{
type_ = type;
}
void column::alias(const std::string &as) void column::alias(const std::string &as)
{ {
alias_ = as; alias_ = as;