Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:26

0001 // @(#)root/net:$Id$
0002 // Author: Sergey Linev   31/05/2006
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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;    //! list of TSQLColumnInfo objects, describing each table column
0024    TString   fEngine;     //! SQL tables engine name
0025    TString   fCreateTime; //! table creation time
0026    TString   fUpdateTime; //! table update time
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) // Summary information about SQL table
0049 };
0050 
0051 #endif