66 const char* sqltypename,
73 TNamed(columnname,
"column information"),
74 fTypeName(sqltypename),
90 std::cout <<
"Column: " <<
GetName()
93 std::cout <<
" typeid:";
106 std::cout <<
" nullable:" << (
fNullable ?
"yes" :
"no");
112 std::cout <<
" unsigned";
114 std::cout <<
" signed";
116 std::cout << std::endl;
Int_t fLength
size of column in bytes, -1 if not defing
virtual void Print(Option_t *option="") const
Prints column information to standard output.
Bool_t fNullable
if datatype signed or not, 0 - kFALSE, 1 - kTRUE, -1 - unknown
The TNamed class is the base class for all named ROOT classes.
ClassImp(TSQLColumnInfo) TSQLColumnInfo
default contructor
Int_t fScale
datatype length definition, for instance VARCHAR(len) or FLOAT(len), -1 if not defined ...
Double_t length(const TVector2 &v)
virtual const char * GetName() const
Returns name of object.
TSQLColumnInfo()
identify if value can be NULL
Int_t fSize
datatype code (see TSQLServer::ESQLDataTypes constants), -1 if not defeined
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
Int_t fSQLType
sql type name, as reported by DB. Should be as much as close to declaration of column in CREATE TABLE...
Int_t fSigned
datatype scale factor, used for instance in NUMBER(len,scale) definition. -1 if not defined ...