Cern
LibTmsApi 2.3.0

#include <BMysql.h>

Public Member Functions

 BMysql ()
 
 ~BMysql ()
 
BError open (BString hostName, BString dataBase, BString userName, BString password)
 
void close ()
 
BError get (BString table, BString where, BDictString &fields)
 
BError insert (BString table, BDictString fields, BUInt32 *id=0)
 
BError update (BString table, BUInt32 id, BDictString fields)
 
BError del (BString table, BUInt32 id)
 Delete record from table.
 
BError flush ()
 Flush all data to disk.
 
BString escapeString (BString str)
 Escapes special characters in the string.
 
BError query (BString cmd, BList< BDictString > &result)
 
MYSQL & db ()
 
void setDebug (int debug)
 

Private Attributes

MYSQL odb
 
int oopened
 
int odebug
 
BMutex olock
 

Constructor & Destructor Documentation

◆ BMysql()

BMysql::BMysql ( )

◆ ~BMysql()

BMysql::~BMysql ( )

Member Function Documentation

◆ close()

void BMysql::close ( )

◆ db()

MYSQL & BMysql::db ( )

◆ del()

BError BMysql::del ( BString  table,
BUInt32  id 
)

Delete record from table.

◆ escapeString()

BString BMysql::escapeString ( BString  str)

Escapes special characters in the string.

◆ flush()

BError BMysql::flush ( )

Flush all data to disk.

◆ get()

BError BMysql::get ( BString  table,
BString  where,
BDictString fields 
)

◆ insert()

BError BMysql::insert ( BString  table,
BDictString  fields,
BUInt32 id = 0 
)

◆ open()

BError BMysql::open ( BString  hostName,
BString  dataBase,
BString  userName,
BString  password 
)

◆ query()

BError BMysql::query ( BString  cmd,
BList< BDictString > &  result 
)

◆ setDebug()

void BMysql::setDebug ( int  debug)

◆ update()

BError BMysql::update ( BString  table,
BUInt32  id,
BDictString  fields 
)

Member Data Documentation

◆ odb

MYSQL BMysql::odb
private

◆ odebug

int BMysql::odebug
private

◆ olock

BMutex BMysql::olock
private

◆ oopened

int BMysql::oopened
private

The documentation for this class was generated from the following files: