renamed basic_types enumerations
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace matador::object {
|
||||
attribute::attribute(std::string name)
|
||||
: attribute(std::move(name), utils::basic_type::type_null, {}, null_option_type::NotNull) {
|
||||
: attribute(std::move(name), utils::basic_type::Null, {}, null_option_type::NotNull) {
|
||||
}
|
||||
|
||||
attribute::attribute(std::string name,
|
||||
@@ -57,39 +57,39 @@ void attribute::change_type(const utils::basic_type type, const utils::field_att
|
||||
}
|
||||
|
||||
bool attribute::is_integer() const {
|
||||
return type_ >= utils::basic_type::type_int8 && type_ <= utils::basic_type::type_uint64;
|
||||
return type_ >= utils::basic_type::Int8 && type_ <= utils::basic_type::UInt64;
|
||||
}
|
||||
|
||||
bool attribute::is_floating_point() const {
|
||||
return type_ == utils::basic_type::type_float || type_ == utils::basic_type::type_double;
|
||||
return type_ == utils::basic_type::Float || type_ == utils::basic_type::Double;
|
||||
}
|
||||
|
||||
bool attribute::is_bool() const {
|
||||
return type_ == utils::basic_type::type_bool;
|
||||
return type_ == utils::basic_type::Boolean;
|
||||
}
|
||||
|
||||
bool attribute::is_string() const {
|
||||
return type_ == utils::basic_type::type_text;
|
||||
return type_ == utils::basic_type::Text;
|
||||
}
|
||||
|
||||
bool attribute::is_varchar() const {
|
||||
return type_ == utils::basic_type::type_varchar;
|
||||
return type_ == utils::basic_type::Varchar;
|
||||
}
|
||||
|
||||
bool attribute::is_date() const {
|
||||
return type_ == utils::basic_type::type_date;
|
||||
return type_ == utils::basic_type::Date;
|
||||
}
|
||||
|
||||
bool attribute::is_time() const {
|
||||
return type_ == utils::basic_type::type_time;
|
||||
return type_ == utils::basic_type::Time;
|
||||
}
|
||||
|
||||
bool attribute::is_blob() const {
|
||||
return type_ == utils::basic_type::type_blob;
|
||||
return type_ == utils::basic_type::Blob;
|
||||
}
|
||||
|
||||
bool attribute::is_null() const {
|
||||
return type_ == utils::basic_type::type_null;
|
||||
return type_ == utils::basic_type::Null;
|
||||
}
|
||||
|
||||
std::ostream & operator<<(std::ostream &os, const attribute &attr) {
|
||||
|
||||
Reference in New Issue
Block a user