added type setter to column
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
[[nodiscard]] const std::string& ref_table() const;
|
||||
[[nodiscard]] const std::string& ref_column() const;
|
||||
|
||||
void type(data_type_t type);
|
||||
void alias(const std::string &as);
|
||||
|
||||
template< typename Type >
|
||||
|
||||
@@ -68,6 +68,11 @@ const std::string &column::ref_column() const
|
||||
return ref_column_;
|
||||
}
|
||||
|
||||
void column::type(data_type_t type)
|
||||
{
|
||||
type_ = type;
|
||||
}
|
||||
|
||||
void column::alias(const std::string &as)
|
||||
{
|
||||
alias_ = as;
|
||||
|
||||
Reference in New Issue
Block a user