added type check methods to column_definition

This commit is contained in:
2024-03-29 11:40:02 +01:00
parent e14d9a77eb
commit 05c0c0393d
2 changed files with 49 additions and 0 deletions
@@ -53,6 +53,15 @@ public:
[[nodiscard]] const std::string& ref_table() const;
[[nodiscard]] const std::string& ref_column() const;
[[nodiscard]] bool is_integer() const;
[[nodiscard]] bool is_floating_point() const;
[[nodiscard]] bool is_bool() const;
[[nodiscard]] bool is_string() const;
[[nodiscard]] bool is_varchar() const;
[[nodiscard]] bool is_blob() const;
[[nodiscard]] bool is_null() const;
[[nodiscard]] bool is_unknown() const;
void type(data_type_t type);
template< typename Type >