12 #ifndef ROOT_TSQLStructure 13 #define ROOT_TSQLStructure 73 TString DefineSQLName(
const char *fullname);
74 Bool_t HasSQLName(
const char *sqlname);
81 void AddColumn(
const char *
name,
const char *sqltype,
const char *value,
Bool_t numeric);
85 Int_t GetNumColumns();
86 const char *GetColumn(
Int_t n);
99 void PerformConversion(TSqlRegistry *reg, TSqlRawBuffer *blobs,
const char *topname,
Bool_t useblob =
kFALSE);
101 Bool_t StoreObjectInNormalForm(TSqlRegistry *reg);
102 Bool_t StoreClassInNormalForm(TSqlRegistry *reg);
104 Bool_t TryConvertObjectArray(TSqlRegistry *reg, TSqlRawBuffer *blobs);
106 Bool_t StoreTObject(TSqlRegistry *reg);
107 Bool_t StoreTString(TSqlRegistry *reg);
108 Bool_t RecognizeTString(
const char *&value);
124 Int_t NumChilds()
const;
132 void SetObjectPointer(
Long64_t ptrid);
133 void SetVersion(
const TClass *cl,
Int_t version = -100);
134 void SetClassStreamer(
const TClass *cl);
139 void SetValue(
const char *value,
const char *tname = 0);
141 void SetArray(
Int_t sz = -1);
142 void ChangeValueOnly(
const char *value);
144 TClass *GetObjectClass()
const;
145 TClass *GetVersionClass()
const;
148 Int_t GetElementNumber()
const;
149 TClass *GetCustomClass()
const;
152 const char *GetValueType()
const;
158 void AddVersion(
const TClass *cl,
Int_t version = -100);
159 void AddValue(
const char *value,
const char *tname = 0);
180 static const char *GetSimpleTypeName(
Int_t typ);
184 static void AddStrBrackets(
TString &
s,
const char *quote);
190 kSqlStreamerInfo = 10004,
191 kSqlClassStreamer = 10005,
195 kSqlObjectData = 10009,
196 kSqlCustomClass = 10010,
197 kSqlCustomElement = 10011
208 kColNormObjectArray = 7,
214 enum ESQLIdType { kIdTable = 0, kIdRawTable = 1, kIdColumn = 2 };
249 extern const char *
Array;
250 extern const char *
Bool;
251 extern const char *
Char;
252 extern const char *
Short;
253 extern const char *
Int;
254 extern const char *
Long;
255 extern const char *
Long64;
256 extern const char *
Float;
257 extern const char *
Double;
258 extern const char *
UChar;
259 extern const char *
UShort;
260 extern const char *
UInt;
261 extern const char *
ULong;
264 extern const char *
True;
265 extern const char *
False;
Describe Streamer information for one class version.
TString fName
! name of the table column
TSQLColumnData()
default constructor
const char * IdsTableIndex
Bool_t fNumeric
! for numeric quotes (double quotes) are not required
RooCmdArg PrintLevel(Int_t code)
const char * cfg_UseTransactions
TObjArray * fColInfos
! array with TSQLClassColumnInfo, used later for TSQLClassInfo
Contains information about tables specific to one class and version.
const char * cfg_LockingMode
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
void SetParent(TSQLStructure *p)
Int_t GetArrayIndex() const
const char * ParentSuffix
const char * cfg_UseIndexes
TSQLObjectData is used in TBufferSQL2 class in reading procedure.
const char * StringsTable
Long64_t atol64(const char *value)
const char * TStringValue
#define ClassDef(name, id)
const char * ObjectsTableIndex
TString fValue
! value of the table column
This is hierarchical structure, which is created when data is written by TBufferSQL2.
const char * cfg_TablesType
const char * KeysTableIndex
const char * GetType() const
Access an SQL db via the TFile interface.
const char * ObjectSuffix
const char * LongStrPrefix
The ROOT global object gROOT contains a list of all defined classes.
const char * TObjectUniqueId
const char * ObjectRef_Arr
virtual ~TSQLColumnData()
TSQLColumnData destructor.
Converts data to SQL statements or read data from SQL tables.
const Int_t Ids_FirstObject
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
virtual const char * GetName() const
Returns name of object.
const Int_t Ids_StreamerInfos
const char * TObjectProcessId
const char * GetValue() const
static constexpr double s
const char * cfg_ArrayLimit
Mother of all ROOT objects.
TString fType
! type of the table column
const char * PointerSuffix
const char * ObjectsTable
Int_t GetRepeatCounter() const
TSQLStructure * GetParent() const
TObjArray fColumns
! collection of columns
const char * cfg_UseSufixes
const char * Data() const
const char * cfg_ModifyCounter