BMysql Class Reference

#include <BMysql.h>

List of all members.

Public Member Functions

 BMysql ()
 ~BMysql ()
BError open (BString hostName, BString dataBase, BString userName, BString password)
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 (  ) 


Member Function Documentation

MYSQL & BMysql::db (  ) 

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

Delete record from table.

BString BMysql::escapeString ( BString  str  ) 

Escapes special characters in the string.

BError BMysql::flush (  ) 

Flush all data to disk.

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

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

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

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

void BMysql::setDebug ( int  debug  ) 

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


Member Data Documentation

MYSQL BMysql::odb [private]

int BMysql::odebug [private]

BMutex BMysql::olock [private]

int BMysql::oopened [private]


The documentation for this class was generated from the following files:
Generated on Mon Dec 13 14:44:29 2010 for LibBeamApi by  doxygen 1.4.7