File indexing completed on 2025-01-18 10:12:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TSQLTableInfo
0013 #define ROOT_TSQLTableInfo
0014
0015 #include "TNamed.h"
0016
0017 class TList;
0018 class TSQLColumnInfo;
0019
0020 class TSQLTableInfo : public TNamed {
0021
0022 protected:
0023 TList* fColumns;
0024 TString fEngine;
0025 TString fCreateTime;
0026 TString fUpdateTime;
0027
0028 public:
0029 TSQLTableInfo();
0030 TSQLTableInfo(const char* tablename,
0031 TList* columns,
0032 const char* comment = "SQL table",
0033 const char* engine = nullptr,
0034 const char* create_time = nullptr,
0035 const char* update_time = nullptr);
0036 virtual ~TSQLTableInfo();
0037
0038 void Print(Option_t* option = "") const override;
0039
0040 TList* GetColumns() const { return fColumns; }
0041
0042 TSQLColumnInfo* FindColumn(const char* columnname);
0043
0044 const char* GetEngine() const { return fEngine.Data(); }
0045 const char* GetCreateTime() const { return fCreateTime.Data(); }
0046 const char* GetUpdateTime() const { return fUpdateTime.Data(); }
0047
0048 ClassDefOverride(TSQLTableInfo, 0)
0049 };
0050
0051 #endif