diff options
Diffstat (limited to 'libmysqlpp/my-column.h')
-rw-r--r-- | libmysqlpp/my-column.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/libmysqlpp/my-column.h b/libmysqlpp/my-column.h index ec0ce85..51c4503 100644 --- a/libmysqlpp/my-column.h +++ b/libmysqlpp/my-column.h @@ -7,43 +7,42 @@ namespace MySQL { class SelectCommand; class ColumnBase : public DB::Column { - public: - ColumnBase(const char * name, unsigned int field); + public: + ColumnBase(const char * name, unsigned int field); - [[nodiscard]] bool isNull() const override; + [[nodiscard]] bool isNull() const override; - protected: - bool is_null; - long unsigned int length; - friend class SelectCommand; + protected: + bool is_null; + long unsigned int length; + friend class SelectCommand; }; class StringColumn : public ColumnBase { - public: - StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len); + public: + StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len); - void apply(DB::HandleField &) const override; + void apply(DB::HandleField &) const override; - std::vector<char> value; - long unsigned int length; + std::vector<char> value; + long unsigned int length; }; class NullColumn : public ColumnBase { - public: - NullColumn(const char * name, unsigned int field, MYSQL_BIND * b); + public: + NullColumn(const char * name, unsigned int field, MYSQL_BIND * b); - void apply(DB::HandleField &) const override; + void apply(DB::HandleField &) const override; }; - template <class T, enum_field_types MT> class Column : public ColumnBase { - public: - Column(const char * name, unsigned int field, MYSQL_BIND * b); + template<class T, enum_field_types MT> class Column : public ColumnBase { + public: + Column(const char * name, unsigned int field, MYSQL_BIND * b); - void apply(DB::HandleField & h) const override; + void apply(DB::HandleField & h) const override; - T value; + T value; }; } #endif - |