32 const char *
pass,
const char *table)
47 smx.Remove(
smx.Length()-1);
50 smx.Remove(
smx.Length()-1);
53 smx.Remove(
smx.Length()-1);
95 if (!values || (values && values->
GetSize() < 1))
102 while (
ops.Tokenize(
op, from,
",")) {
105 }
else if (
op.BeginsWith(
"table=")) {
106 op.ReplaceAll(
"table=",
"");
110 table.Remove(
idot+1);
131 while ((o =
nxi())) {
162 Error(
"SendParameters",
"insert into %s failed", table.Data());
163 if (
sql.Length() > 1024) {
178 Error(
"SendParameters",
"bulk insert: first entry in list is not 'TObjString' but '%s'", o ? o->
ClassName() :
"noclass" );
186 while ((o =
nxi())) {
191 Warning(
"SendParameters",
"bulk insert: ignoring not 'TObjString' entry ('%s')", o->
ClassName() );
196 Error(
"SendParameters",
"bulk insert into %s failed", table.Data());
197 if (
sql.Length() > 1024) {
213 Error(
"SendParameters",
"bulk insert into %s failed", table.Data());
214 if (
sql.Length() > 1024) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Collectable string class.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual ~TSQLMonitoringWriter()
Destructor.
Bool_t SendParameters(TList *values, const char *) override
Register query log using the information in the list which is in the form TParameter(<par>,...
TSQLMonitoringWriter(const TSQLMonitoringWriter &)=delete
virtual TSQLResult * Query(const char *sql)=0
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.